Skip to main content

Module command

Module command 

Source

Structs§

CommandBase
Base command shared by all command types.
CommandCompleteOptions
Options for command completion.
LocalCommand
Local command definition.
LocalJsxCommand
Local JSX command definition.
PluginInfo
Plugin info for a command.
PromptCommand
Prompt command configuration.

Enums§

Command
Unified command enum combining base with specific implementation types.
CommandAvailability
Callback when a command declares who can use it (auth/provider requirement, static). This is separate from isEnabled():
CommandKind
Command kind enum.
CommandLoadSource
Where the command was loaded from.
CommandResultDisplay
Command result display enum.
CommandSource
Where a command was loaded from.
ExecutionContext
Execution context for commands.
LocalCommandResult
Local command result type.
ResumeEntrypoint
Resume entry point.
SettingSource
Setting source enum.

Functions§

get_command_name
Resolves the user-visible name, falling back to cmd.name when not overridden.
is_command_enabled
Resolves whether the command is enabled, defaulting to true.

Type Aliases§

LocalCommandModule
Local command module shape.
LocalJsxCommandModule
Local JSX command module shape.
LocalJsxCommandOnDone
Callback when a command completes.