Skip to main content

register_apcli_subcommands

Function register_apcli_subcommands 

Source
pub fn register_apcli_subcommands(
    apcli_group: Command,
    cfg: &ApcliGroup,
    prog_name: &str,
) -> Command
Expand description

Central dispatcher for the 13 canonical apcli subcommands. Walks a fixed registration table and honors ApcliGroup::resolve_visibility for include/exclude modes. Under "all" or "none" all 13 subcommands are registered (spec §4.9 registration rules table); under "include" only listed subcommands + APCLI_ALWAYS_REGISTERED; under "exclude" all except listed + APCLI_ALWAYS_REGISTERED.

  • apcli_group — the apcli clap Command to receive subcommands.
  • cfg — the resolved apcli visibility configuration.
  • prog_name — program name forwarded to register_completion_command.

Returns the updated command with registered subcommands attached.