Skip to main content

Module completion

Module completion 

Source
Expand description

Dynamic shell completion for the ct umbrella, via veks-completion.

The command tree is derived from the lib-hosted clap grammar (crate::cli) so it can never drift from the actual CLI: every leaf tool becomes a ct <name> subcommand whose value/boolean flags come straight from the introspected grammar, and a value_enum flag’s variants become its completion set the same way. On top of that, a few flags get runtime value providers that read the live rule store — ids, tags, and def names — which a static clap_complete script cannot do. The ct binary drives this tree through veks_completion::handle_complete_env.

Functions§

command_tree
Build the ct completion tree from the live clap grammar: one subcommand per leaf tool (its ct- prefix dropped), flags split into value/boolean by the introspected kind, enum value-sets and store providers attached.