CLIDefinition
Input shape accepted by createCLISchema.
Every field except name is optional. Commands accept either definitions or already-built schemas. Plugins are execution state and have no definition field.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/cli/index.ts - Source link:
src/core/cli/index.ts:480
Signatures
interface CLIDefinition {}Members
Properties
builtins
Which built-in flags the root keeps.
builtins?: BuiltinsConfig;commands
Registered command definitions or built schemas, in registration order.
commands?: readonly (CommandSchema | CommandDefinition)[];completionsFlag
Eager --completions <shell> flag configuration.
completionsFlag?: CompletionsFlagConfig;configSettings
Config discovery settings, as a definition or an already-built value.
configSettings?: ConfigSettings | ConfigSettingsDefinition;defaultCommand
Default command dispatched when no subcommand matches.
defaultCommand?: CommandSchema | CommandDefinition;defaultCommandRouted
Whether the default command is also exposed as a named top-level route.
defaultCommandRouted?: boolean;description
Program description shown in root help.
description?: string;flagSettings
Flag-parsing behavior settings.
flagSettings?: ParseOptions;hasBuiltInCompletions
Whether built-in .completions() registration is active.
hasBuiltInCompletions?: boolean;helpConfig
Consumer-configured root-help defaults.
helpConfig?: HelpConfig;helpLinks
OSC 8 hyperlink targets for the root-help header.
helpLinks?: HelpLinks;inheritName
Whether .run() should replace name with the invoked program name.
inheritName?: boolean;name
Program name used in help text, usage lines, and completion scripts.
name: string;packageJsonSettings
Manifest auto-discovery settings.
packageJsonSettings?: ResolvedManifestSettings;version
Program version shown by --version.
version?: string;