Skip to main content

Module cli

Module cli 

Source

Structs§

Cli
ResolvedSettings
A Settings paired with its per-leaf SettingsProv. Bundled because every non-init CliResult variant needs both, the active values for runtime use and the provenance for source attribution (/settings API and config show). prov is Arc so it can move into the app state without a re-allocation; SettingsProv is also large enough that an inline owned value would balloon CliResult.
ShowConfigOptions
Options for the config show command

Enums§

CliResult
Command
ConfigAction

Constants§

DOC_BUILD_CRATESIO_INDEX_ARG
Long flag of DOC_BUILD_SUBCOMMAND for the crates.io index override.
DOC_BUILD_SUBCOMMAND
Name of the hidden subcommand that builds the docs of a single crate.

Functions§

cli_flag_map
Map every settings leaf (dotted path) to its user-facing CLI flag(s).
parse_cli
settings_from_process
Settings of the running kellnr start, resolved from the same command line, environment and config file as at startup. For code that runs before the settings are passed around, like the database migrations. None if the process was not started with valid kellnr arguments, for example in tests.