Skip to main content

agent_surface_field_synonym_groups

Function agent_surface_field_synonym_groups 

Source
pub fn agent_surface_field_synonym_groups(
    command: Option<&str>,
) -> impl Iterator<Item = &'static [&'static str]> + '_
Expand description

GAP-SG-274: the synonym groups that apply to command, in table order.

command is the slug crate::cli::Commands::agent_surface_slug reported for this invocation, or None when the surface was never told which subcommand emitted the envelope. None selects the unscoped groups alone, which is the fail-safe reading: a command that does not identify itself gets the synonyms that are true everywhere and none of the ones that are true only somewhere.