Liking cljdoc? Tell your friends :D

automaton-build.os.cmds

Execute commands.

Execute commands.
raw docstring

blocking-cmdclj

(blocking-cmd cmd dir)

Returns a map with execution blocking-cmd of the blocking command cmd execution. Use this flavor when you need to wait for the end of the execution and have the exit code and outputs (out and err).

Returns a map with execution blocking-cmd of the blocking command `cmd` execution.
Use this flavor when you need to wait for the end of the execution and have the `exit` code and outputs (`out` and `err`).
raw docstring

blocking-cmd-strclj

(blocking-cmd-str cmd-str dir)

Returns a map with execution blocking-cmd of the blocking command cmd-str execution. Use this flavor when you need to wait for the end of the execution and have the exit code and outputs (out and err).

Returns a map with execution blocking-cmd of the blocking command `cmd-str` execution.
Use this flavor when you need to wait for the end of the execution and have the `exit` code and outputs (`out` and `err`).
raw docstring

chain-cmdsclj

(chain-cmds cmd-chain)

Execute all commands in the chain, stops at the first failing one.

Execute all commands in the chain, stops at the first failing one.
raw docstring

clj-parameterizeclj

(clj-parameterize par)

Turns par into a parameter understood by a clojure cli.

Turns `par` into a parameter understood by a clojure `cli`.
raw docstring

create-processclj

(create-process cmd dir)

Create a process executed in directory dir and based on command string cmd-str.

Returns a process.

Create a process executed in directory `dir` and based on command string `cmd-str`.

Returns a process.
raw docstring

create-process-strclj

(create-process-str cmd-str dir)

Create a process executed in directory dir and based on command string cmd-str.

Returns a process.

Create a process executed in directory `dir` and based on command string `cmd-str`.

Returns a process.
raw docstring

defaulting-dirclj

(defaulting-dir dir)

execclj

(exec process)

first-failingclj

(first-failing chain-res)

Returns the result of the first failing result of a command, or the last succesful one.

Returns the result of the first failing result of a command, or the last succesful one.
raw docstring

force-dirsclj

(force-dirs cmd-chain dir)

Update a chain so all element of the chain are executed in the same dir

Update a chain so all element of the chain are executed in the same `dir`
raw docstring

killclj

(kill proc)

Kill the running process proc.

Kill the running process `proc`.
raw docstring

log-streamclj

(log-stream proc stream-kw on-line-fn on-end-fn refresh-delay error-fn)

Apply logger-fn to each line of the stream called stream-kw of the proc. When the proc is not alive. refresh-delay pauses between two attempts of refreshing the log. If an error occur, use error-fn to display it.

Apply `logger-fn` to each line of the stream called `stream-kw` of the `proc`. When the `proc` is not alive.
`refresh-delay` pauses between two attempts of refreshing the log.
If an error occur, use `error-fn` to display it.
raw docstring

schemaclj


simple-shellclj

(simple-shell cmd args)

Simple shell. Use this one when you need to leverage standard input/output for the command called.

Simple shell.
Use this one when you need to leverage standard input/output for the command called.
raw docstring

successclj

(success result)

Returns true if the result is a success

Returns `true` if the result is a success
raw docstring

to-strclj

(to-str cmd)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close