Documentation ¶
Index ¶
- type Command
- type CommandCompletionProvider
- type CommandController
- func (c *CommandController) AddCommandLookupExtension(ext CommandLookupExtension)
- func (c *CommandController) AddCommands(ctx *CommandList)
- func (c *CommandController) Alias(commandName string, aliasArgs []string) Command
- func (c *CommandController) Execute(commandInput string) tea.Msg
- func (c *CommandController) ExecuteFile(filename string) error
- func (c *CommandController) Prompt() tea.Msg
- func (c *CommandController) SetCommandCompletionProvider(provider CommandCompletionProvider)
- type CommandList
- type CommandLookupExtension
- type ExecContext
- type IterProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandCompletionProvider ¶ added in v0.4.0
type CommandController ¶
type CommandController struct {
// contains filtered or unexported fields
}
func NewCommandController ¶
func NewCommandController(historyProvider IterProvider) *CommandController
func (*CommandController) AddCommandLookupExtension ¶
func (c *CommandController) AddCommandLookupExtension(ext CommandLookupExtension)
func (*CommandController) AddCommands ¶
func (c *CommandController) AddCommands(ctx *CommandList)
func (*CommandController) Alias ¶
func (c *CommandController) Alias(commandName string, aliasArgs []string) Command
func (*CommandController) Execute ¶
func (c *CommandController) Execute(commandInput string) tea.Msg
func (*CommandController) ExecuteFile ¶
func (c *CommandController) ExecuteFile(filename string) error
func (*CommandController) Prompt ¶
func (c *CommandController) Prompt() tea.Msg
func (*CommandController) SetCommandCompletionProvider ¶ added in v0.4.0
func (c *CommandController) SetCommandCompletionProvider(provider CommandCompletionProvider)
type CommandList ¶
type CommandLookupExtension ¶
type ExecContext ¶
type ExecContext struct { // FromFile is true if the command is executed as part of a command FromFile bool }
type IterProvider ¶
type IterProvider interface {
Iter(ctx context.Context, category string) services.HistoryProvider
}
Click to show internal directories.
Click to hide internal directories.