Skip to main content

Module cli

Module cli 

Source
Expand description

CLI top level command and processing

Structs§

CompletionCommand
Output shell completion code for the specified shell (bash, zsh, fish, or powershell). The shell code must be evaluated to provide interactive completion of osc commands. This can be done by sourcing it from the .bash_profile.
ConnectionOpts
Connection options.
ConnectionRequirements
Pre-connect behavior a parsed command wants from the CLI entry point.
GlobalOpts
Global CLI options.
OutputOpts
Output configuration.

Enums§

MicroVersionStrategyArg
Microversion negotiation strategy (CLI-facing mirror of openstack_sdk::MicroVersionStrategy, kept separate so cli/core does not need a hard dependency on the full SDK crate for a single enum).
OutputFormat
Output format.
TableArrangement
Table arrangement.

Traits§

CliArgs
Trait for getting Command execution context.
ConnectionRequirementsProvider
Provides pre-connect ConnectionRequirements for a parsed command.

Functions§

parse_config
Parse config file
resolve_api_version
Resolve a per-service API version selector by scanning the real process arguments directly. This has to happen before clap builds the Command tree (inside Args::augment_args), i.e. before any ArgMatches exist — so it can’t go through clap itself. Once the tree is built, the actual (clap-parsed, env-aware, default-applying) value is read normally from ArgMatches in FromArgMatches::from_arg_matches; this function is only ever used to decide which version’s subcommand tree to attach.
styles