Skip to main content

list_in_group

Function list_in_group 

Source
pub fn list_in_group(
    group: &str,
    opts: &DispatchOpts,
    show_all: bool,
) -> Result<Vec<DispatchListEntry>, DispatchError>
Expand description

Return all commands defined in the given group.

When show_all is false, commands whose platform field doesn’t match Platform::current are excluded. When show_all is true they are included with platform_filtered = true.

Returns DispatchError::GroupNotFound when the group has no entries. Results are sorted alphabetically by name.