Liking cljdoc? Tell your friends :D

bract.cli.inducer

Inducers provided by the bract.cli module.

Inducers provided by the bract.cli module.
raw docstring

execute-commandclj

(execute-command context)

Execute CLI command placed under key :bract.cli/command in the context using the CLI aruments placed under the key :bract.cli/cmd-args. Verify valid command by looking up the command map under the key :bract.cli/app-commands in the context.

Execute CLI command placed under key `:bract.cli/command` in the context using the CLI aruments placed under the key
`:bract.cli/cmd-args`. Verify valid command by looking up the command map under the key `:bract.cli/app-commands` in
the context.
sourceraw docstring

merge-commandsclj

(merge-commands context new-commands)

Merge given CLI command map {"command-name" {:doc string :handler inducer}} to the existing one. The inducer is (fn [context]) -> context.

Merge given CLI command map `{"command-name" {:doc string :handler inducer}}` to the existing one. The inducer is
`(fn [context]) -> context`.
sourceraw docstring

merge-launch-commandsclj

(merge-launch-commands context new-commands)

Merge given CLI command map {"command-name" {:doc string :handler launcher}} to the existing one. The launcher is (fn [context]) -> context meant to replace the entry at key :bract.core/launcher in the context.

Merge given CLI command map `{"command-name" {:doc string :handler launcher}}` to the existing one. The launcher is
`(fn [context]) -> context` meant to replace the entry at key `:bract.core/launcher` in the context.
sourceraw docstring

parse-argsclj

(parse-args context)

Given context with key :bract.cli/cli-args, parse CLI args and return (potentially reduced) the context updated with config filename, CLI command and command-arguments.

Given context with key `:bract.cli/cli-args`, parse CLI args and return (potentially reduced) the context updated
with config filename, CLI command and command-arguments.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close