Integrations can provide additional flags to your application. These flags are automatically added to commands and route maps. The flag name matches the property name in your integrations object (respecting the configured scanner-case-style).
When a user requests a flag, the integration's run function is called. This function can be asynchronous and returns a promise. It results in an exit code of 0 unless an error is thrown.
Flag Configuration Options:
brief: The in-line documentation string for the flag.aliases: An array of single-character aliases (e.g., ['v', 'V']).hidden: If true, the flag is excluded from default help text.global: If true, the flag is available on all commands, not just the root.complete: If true, the flag is included in auto-complete suggestions.defaultForRouteMap: If true, this integration executes automatically if the user's input targets a route map without specifying a subcommand or flag.
:::note
Setting defaultForRouteMap: true is useful for flags like --help to ensure users see documentation when they land on a route map without a specific command.
:::