Skip to main content

command_catalog

Function command_catalog 

Source
pub fn command_catalog(
    plugins: &[Box<dyn Plugin>],
) -> Vec<(String, Option<String>)>
Expand description

Collect every plugin-contributed command as (name, about) pairs.

This is the plugin half of the unified help catalog the CLI prints on umbral help, umbral --help, and umbral <unknown>. The other half — the framework’s built-in subcommands (serve / migrate / …) — is collected in umbral-cli from the derived clap Command, then merged with this list by render_help.

Duplicate names across plugins are dropped (first-registered wins), mirroring dispatch’s own dedup so the listing matches what would actually run. A command whose clap::Command carries no about still appears (with None description); the CLI renders a dash for it and emits a debug! nudging the plugin author to add help text.