Embed shell script in clojure.
Shell script is embedded by wrapping in the script
macro.
(script (ls)) => "ls"
The result of a script
form is a string.
Embed shell script in clojure. Shell script is embedded by wrapping in the `script` macro. (script (ls)) => "ls" The result of a `script` form is a string.
Current stevedore implementation
Current stevedore implementation
Chain commands together. Commands are executed left-to-right and a command is only executed if the last command in the chain did not fail.
Chain commands together. Commands are executed left-to-right and a command is only executed if the last command in the chain did not fail.
(chain-commands* scripts)
Chain commands together. Commands are executed left-to-right and a command is only executed if the last command in the chain did not fail.
Chain commands together. Commands are executed left-to-right and a command is only executed if the last command in the chain did not fail.
(chained-script & forms)
Takes one or more forms. Returns a string of the forms translated into a chained shell script command.
Takes one or more forms. Returns a string of the forms translated into a chained shell script command.
Wrap a command in a code that checks the return value. Code to output the messages is added before the command.
Wrap a command in a code that checks the return value. Code to output the messages is added before the command.
(checked-commands* message scripts)
Wrap a command in a code that checks the return value. Code to output the messages is added before the command.
Wrap a command in a code that checks the return value. Code to output the messages is added before the command.
(checked-script message & forms)
Takes one or more forms. Returns a string of the forms translated into shell scrip. Wraps the expression in a test for the result status.
Takes one or more forms. Returns a string of the forms translated into shell scrip. Wraps the expression in a test for the result status.
Concatenate multiple scripts.
Concatenate multiple scripts.
(do-script* scripts)
Concatenate multiple scripts
Concatenate multiple scripts
(fragment & forms)
Takes one or more forms. Returns a string of the forms translated into shell script. The returned fragment will have no source line annotations.
(fragment
(println "hello")
(ls -l "*.sh"))
Must be wrapped in with-script-language
.
Takes one or more forms. Returns a string of the forms translated into shell script. The returned fragment will have no source line annotations. (fragment (println "hello") (ls -l "*.sh")) Must be wrapped in `with-script-language`.
(map-to-arg-string m & {:keys [underscore assign dash] :or {dash "--"}})
Output a set of command line switches from a map
Output a set of command line switches from a map
Operators that should not be resolved.
Operators that should not be resolved.
(option-args {:as m})
Output a set of command line switches from a sequence of options
Output a set of command line switches from a sequence of options
(script & forms)
Takes one or more forms. Returns a string of the forms translated into shell script.
(script
(println "hello")
(ls -l "*.sh"))
Must be wrapped in with-script-language
. Can be wrapped in
with-source-line-comments
to control the generation of source line
comments in the script.
Takes one or more forms. Returns a string of the forms translated into shell script. (script (println "hello") (ls -l "*.sh")) Must be wrapped in `with-script-language`. Can be wrapped in `with-source-line-comments` to control the generation of source line comments in the script.
Special forms are handled explcitly by an implementation of
emit-special
.
Special forms are handled explcitly by an implementation of `emit-special`.
(splice-list coll)
Mark a collection for splicing
Mark a collection for splicing
(statement form script)
Emit an expression as a valid shell statement, with separator.
Emit an expression as a valid shell statement, with separator.
(underscore s)
Replace all occurances of - with _
Replace all occurances of - with _
Set of symbols that should not be resolved.
Set of symbols that should not be resolved.
(with-line-number [file line] & body)
Provide the source file and line number for use in reporting.
Provide the source file and line number for use in reporting.
(with-script-language impl & body)
Set which stevedore implementation to use. Currently supports: :stevedore.bash/bash
Set which stevedore implementation to use. Currently supports: :stevedore.bash/bash
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close