Liking cljdoc? Tell your friends :D

bsdkrun.process

Spawns the bsdkrun CLI and captures its output.

Every invocation is prefixed with --log-level <n> (default 0) so the SDK's captured output stays clean.

Spawns the `bsdkrun` CLI and captures its output.

Every invocation is prefixed with `--log-level <n>` (default 0) so the
SDK's captured output stays clean.
raw docstring

runclj

(run args)
(run args {:keys [env stdin log-level] :or {env {} log-level 0}})

Run bsdkrun --log-level <n> <args> to completion, buffering output.

opts: :env extra environment variables merged onto the process env (a map; keys/values are stringified) :stdin data piped to the child's stdin (a string), or nil :log-level bsdkrun's global log level (0=off .. 5=trace), default 0

Returns {:stdout ... :stderr ... :exit-code ...}.

Run `bsdkrun --log-level <n> <args>` to completion, buffering output.

`opts`:
  `:env`       extra environment variables merged onto the process env
               (a map; keys/values are stringified)
  `:stdin`     data piped to the child's stdin (a string), or nil
  `:log-level` bsdkrun's global log level (0=off .. 5=trace), default 0

Returns `{:stdout ... :stderr ... :exit-code ...}`.
sourceraw docstring

run!clj

(run! args {:keys [label] :as opts})

Run and throw errors/command-failed (see bsdkrun.errors) on a non-zero exit.

opts is the same map run takes, plus :label — a human-readable name for the invocation used both in the thrown error and (by callers) as a Result's :command.

Run and throw `errors/command-failed` (see `bsdkrun.errors`) on a
non-zero exit.

`opts` is the same map [[run]] takes, plus `:label` — a human-readable
name for the invocation used both in the thrown error and (by callers) as
a Result's `:command`.
sourceraw docstring

spawn-interactive!clj

(spawn-interactive! args)
(spawn-interactive! args {:keys [log-level] :or {log-level 0}})

Spawn an interactive bsdkrun command inheriting the parent's stdio (for shell) and block for the exit code.

Returns true if the command exited zero.

Spawn an interactive `bsdkrun` command inheriting the parent's stdio (for
`shell`) and block for the exit code.

Returns true if the command exited zero.
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