commands

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemCommands = uicmd.SystemCommands
	UserCommands   = uicmd.UserCommands
	MCPPrompts     = uicmd.MCPPrompts
)
View Source
const (
	CommandsDialogID dialogs.DialogID = "commands"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Name, Title, Description string
	Required                 bool
}

type ArgumentsDialogKeyMap

type ArgumentsDialogKeyMap struct {
	Confirm  key.Binding
	Next     key.Binding
	Previous key.Binding
	Close    key.Binding
}

func DefaultArgumentsDialogKeyMap

func DefaultArgumentsDialogKeyMap() ArgumentsDialogKeyMap

func (ArgumentsDialogKeyMap) FullHelp

func (k ArgumentsDialogKeyMap) FullHelp() [][]key.Binding

FullHelp implements help.KeyMap.

func (ArgumentsDialogKeyMap) KeyBindings

func (k ArgumentsDialogKeyMap) KeyBindings() []key.Binding

KeyBindings implements layout.KeyMapProvider

func (ArgumentsDialogKeyMap) ShortHelp

func (k ArgumentsDialogKeyMap) ShortHelp() []key.Binding

ShortHelp implements help.KeyMap.

type CloseArgumentsDialogMsg

type CloseArgumentsDialogMsg = uicmd.CloseArgumentsDialogMsg

CloseArgumentsDialogMsg is a message that is sent when the arguments dialog is closed.

type Command

type Command = uicmd.Command

Command represents a command that can be executed

type CommandArgumentsDialog

type CommandArgumentsDialog interface {
	dialogs.DialogModel
}

CommandArgumentsDialog represents the commands dialog.

func NewCommandArgumentsDialog

func NewCommandArgumentsDialog(
	id, title, name, description string,
	arguments []Argument,
	onSubmit func(args map[string]string) tea.Cmd,
) CommandArgumentsDialog

type CommandRunCustomMsg

type CommandRunCustomMsg = uicmd.CommandRunCustomMsg

Command represents a command that can be executed

type CommandsDialog

type CommandsDialog interface {
	dialogs.DialogModel
}

CommandsDialog represents the commands dialog.

func NewCommandDialog

func NewCommandDialog(sessionID string) CommandsDialog

type CommandsDialogKeyMap

type CommandsDialogKeyMap struct {
	Select,
	Next,
	Previous,
	Tab,
	Close key.Binding
}

func DefaultCommandsDialogKeyMap

func DefaultCommandsDialogKeyMap() CommandsDialogKeyMap

func (CommandsDialogKeyMap) FullHelp

func (k CommandsDialogKeyMap) FullHelp() [][]key.Binding

FullHelp implements help.KeyMap.

func (CommandsDialogKeyMap) KeyBindings

func (k CommandsDialogKeyMap) KeyBindings() []key.Binding

KeyBindings implements layout.KeyMapProvider

func (CommandsDialogKeyMap) ShortHelp

func (k CommandsDialogKeyMap) ShortHelp() []key.Binding

ShortHelp implements help.KeyMap.

type CompactMsg

type CompactMsg struct {
	SessionID string
}

type NewSessionsMsg

type NewSessionsMsg struct{}

type OpenExternalEditorMsg

type OpenExternalEditorMsg struct{}

type OpenFilePickerMsg

type OpenFilePickerMsg struct{}

type OpenReasoningDialogMsg

type OpenReasoningDialogMsg struct{}

type QuitMsg

type QuitMsg struct{}

type ShowArgumentsDialogMsg

type ShowArgumentsDialogMsg = uicmd.ShowArgumentsDialogMsg

ShowArgumentsDialogMsg is a message that is sent to show the arguments dialog.

type ShowMCPPromptArgumentsDialogMsg

type ShowMCPPromptArgumentsDialogMsg = uicmd.ShowMCPPromptArgumentsDialogMsg

Command represents a command that can be executed

type SwitchModelMsg

type SwitchModelMsg struct{}

type SwitchSessionsMsg

type SwitchSessionsMsg struct{}

type ToggleCompactModeMsg

type ToggleCompactModeMsg struct{}

type ToggleHelpMsg

type ToggleHelpMsg struct{}

type ToggleThinkingMsg

type ToggleThinkingMsg struct{}

type ToggleYoloModeMsg

type ToggleYoloModeMsg struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL