Skip to main content

Module build

Module build 

Source
Expand description

Build an IntrospectDocument from a clap::Command tree.

Functionsยง

arg_kind ๐Ÿ”’
arg_value_type ๐Ÿ”’
build_arg_info ๐Ÿ”’
build_binary_info ๐Ÿ”’
build_command_info ๐Ÿ”’
build_document
Build an IntrospectDocument for command overlaid with metadata from registry.
build_root_command_info ๐Ÿ”’
Build a synthetic CommandInfo for the root/default invocation.
collect_command_ids
Collect every command_id (recursively) emitted by an IntrospectDocument.
derive_command_id ๐Ÿ”’
Derive the stable command id.
duplicate_command_ids
Assert that every command_id in doc is unique.
is_help_or_version ๐Ÿ”’
render_introspect_document
Serialize an IntrospectDocument as compact JSON.