Inducers provided by the bract.cli module.
Inducers provided by the bract.cli module.
(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.
(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`.(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.(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.
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 |