IShell implementation via ProcessBuilder. All operations return hive-dsl Results.
IShell implementation via ProcessBuilder. All operations return hive-dsl Results.
(exec! cmd)(exec! cmd opts)Execute a shell command. Returns Result. cmd can be a string (passed to sh -c) or a vector of args.
Opts: :dir — working directory :env — extra env vars map :timeout-ms — kill after N ms (default 30s)
Execute a shell command. Returns Result. cmd can be a string (passed to sh -c) or a vector of args. Opts: :dir — working directory :env — extra env vars map :timeout-ms — kill after N ms (default 30s)
(exec-ok! cmd)(exec-ok! cmd opts)Like exec! but returns (err ...) if exit code is non-zero.
Like exec! but returns (err ...) if exit code is non-zero.
(make-shell)(make-shell opts)Create a Shell instance with optional default opts. Opts: :dir, :env, :timeout-ms.
Create a Shell instance with optional default opts. Opts: :dir, :env, :timeout-ms.
(require-tool tool-key)Check tool availability with install hints. See shell.tools/require-tool.
Check tool availability with install hints. See shell.tools/require-tool.
(which program)Resolve program to path. Returns Result.
Resolve program to path. Returns Result.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |