Skip to main content

Module cli

Module cli 

Source
Expand description

clap-based command-line interface.

Ports the main options from the original GitVersion.App/ArgumentParser.cs.

Structs§

Cli

Enums§

OutputFormat
Output format.
Verbosity
Log verbosity level. Corresponds to the original Verbosity.

Functions§

apply_overrides
Apply key=value overrideconfig entries to the configuration.
localized_command
Build a clap Command with about and per-argument help overridden by t! for the current locale. If a cli.about or cli.help.<arg_id> key resolves to a translated string, it replaces the English source doc; if the key is returned as-is (no translation), the English source doc is kept. Must be called after the locale is set (before argument parsing).