User module CLI entrypoint wrapper.
Encapsulates user-specific CLI startup so that the top-level CLI can remain as module-agnostic as possible and delegate into this module.
Note: wagoe.config is loaded lazily via requiring-resolve so this namespace compiles cleanly when wagoe/src is not on the classpath (e.g. when using zzp-guard's :dev-local alias during REPL development).
User module CLI entrypoint wrapper. Encapsulates user-specific CLI startup so that the top-level CLI can remain as module-agnostic as possible and delegate into this module. Note: wagoe.config is loaded lazily via requiring-resolve so this namespace compiles cleanly when wagoe/src is not on the classpath (e.g. when using zzp-guard's :dev-local alias during REPL development).
Terminates the process with code. Indirection so tests can observe the exit
code -main asks for instead of killing the test JVM.
Terminates the process with `code`. Indirection so tests can observe the exit code -main asks for instead of killing the test JVM.
(-main & args)CLI main entry point for the user module. Exits with the returned status.
Invoked via -m (the :user-cli alias), NOT via -e with
command-line-args. With -e, clojure.main treats the first non-option
argument as a script path and binds command-line-args to what follows, so
the verb — create in bb create-admin — was silently dropped and the CLI
rejected the next argument as an unknown global option (BOU-266). -m passes
arguments to -main intact.
CLI main entry point for the user module. Exits with the returned status. Invoked via `-m` (the :user-cli alias), NOT via `-e` with *command-line-args*. With -e, clojure.main treats the first non-option argument as a script path and binds *command-line-args* to what follows, so the verb — `create` in `bb create-admin` — was silently dropped and the CLI rejected the next argument as an unknown global option (BOU-266). -m passes arguments to -main intact.
(run-cli! args)Run the user module CLI for the given command-line arguments.
Returns an integer exit status. Does not call System/exit.
Run the user module CLI for the given command-line arguments. Returns an integer exit status. Does not call System/exit.
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 |