Liking cljdoc? Tell your friends :D

hive-system.shell.core

IShell implementation via ProcessBuilder. All operations return hive-dsl Results.

IShell implementation via ProcessBuilder.
All operations return hive-dsl Results.
raw docstring

envclj

(env)

Get environment variables as map.

Get environment variables as map.
sourceraw docstring

exec!clj

(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)
sourceraw docstring

exec-ok!clj

(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.
sourceraw docstring

make-shellclj

(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.
sourceraw docstring

require-toolclj

(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.
sourceraw docstring

whichclj

(which program)

Resolve program to path. Returns Result.

Resolve program to path. Returns Result.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close