You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+19-11Lines changed: 19 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
-[`destroy`](#babashka.process/destroy) - Destroys the process and returns the input arg.
8
8
-[`destroy-tree`](#babashka.process/destroy-tree) - Same as <code>destroy</code> but also destroys all descendants.
9
9
-[`exec`](#babashka.process/exec) - Replaces the current process image with the process image specified by the given path invoked with the given args.
10
+
-[`null-file`](#babashka.process/null-file)
10
11
-[`parse-args`](#babashka.process/parse-args) - Parses arguments to <code>process</code> to map with: * <code>:prev</code>: a (previous) process whose input is piped into the current process * <code>:cmd</code>: a vector of command line argument strings * <code>:opts</code>: options map Note that this function bridges the legacy <code>[cmds ?opts]</code> syntax to the newer recommended syntax <code>[?opts & args]</code> and therefore looks unnecessarily complex.
11
12
-[`pb`](#babashka.process/pb) - Returns a process builder (as record).
12
13
-[`pipeline`](#babashka.process/pipeline) - Returns the processes for one pipe created with -> or creates pipeline from multiple process builders.
@@ -38,7 +39,7 @@ Function.
38
39
Convenience macro around [`process`](#babashka.process/process). Takes command as varargs. Options can
39
40
be passed via metadata on the form or as a first map arg. Supports
@@ -251,7 +259,7 @@ Convenience function around [[`process`](#babashka.process/process)](#babashka.p
251
259
-`(shell {:out "/tmp/log.txt"} "git commit -m" "WIP")` ;; `"git commit -m"` is tokenized as `["git" "commit" "-m"]` and `"WIP"` is an additional argument
252
260
253
261
Also see the [`shell`](#babashka.process/shell) entry in the babashka book [here](https://book.babashka.org/#_shell).
0 commit comments