Documentation
¶
Index ¶
- type Command
- 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
- 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 CommandController ¶
type CommandController struct {
// contains filtered or unexported fields
}
func NewCommandController ¶
func NewCommandController(historyProvider IterProvider) *CommandController
func (*CommandController) AddCommandLookupExtension ¶ added in v0.2.0
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 ¶ added in v0.0.3
func (c *CommandController) ExecuteFile(filename string) error
func (*CommandController) Prompt ¶
func (c *CommandController) Prompt() tea.Msg
type CommandList ¶ added in v0.0.3
type CommandLookupExtension ¶ added in v0.2.0
type ExecContext ¶ added in v0.0.3
type ExecContext struct {
// FromFile is true if the command is executed as part of a command
FromFile bool
}
type IterProvider ¶ added in v0.2.0
type IterProvider interface {
Iter(ctx context.Context, category string) services.HistoryProvider
}
Click to show internal directories.
Click to hide internal directories.