(def-async-sh name sh-cmd & sh-args-spec)
Create an agent and watch function to facilitate asynchronous use of clojure.java.sh.
sh-args-spec is a sequence of: string | number | symbol | fn-spec
strings and numbers: passed directly into the command line symbols: passed to the function at call-time. The value of the symbol is then passed to the command line fn-spec: a list of the form: (fn [<params>] body) | (arbitrary-fn-name <params>)
The specified function must return a string. The specified parameters become required parameters for the generated function. The parameter values are passed into the function, and the resulting string is passed to the command line.
Create an agent and watch function to facilitate asynchronous use of clojure.java.sh. sh-args-spec is a sequence of: string | number | symbol | fn-spec strings and numbers: passed directly into the command line symbols: passed to the function at call-time. The value of the symbol is then passed to the command line fn-spec: a list of the form: (fn [<params>] body) | (arbitrary-fn-name <params>) The specified function must return a string. The specified parameters become required parameters for the generated function. The parameter values are passed into the function, and the resulting string is passed to the command line.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close