Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is the root TUI application.
type Command ¶
Command represents a colon-command with a canonical name, aliases, and the view it maps to.
type CommandRegistry ¶
type CommandRegistry struct {
// contains filtered or unexported fields
}
CommandRegistry holds all registered colon-commands.
func NewCommandRegistry ¶
func NewCommandRegistry() *CommandRegistry
NewCommandRegistry creates a CommandRegistry populated with the MVP commands.
func (*CommandRegistry) Match ¶
func (r *CommandRegistry) Match(input string) (string, bool)
Match performs a fuzzy-prefix match on the input against all command names and aliases. It returns the view name of the matched command and true if a unique match is found. If the input is ambiguous or matches nothing, it returns ("", false).
Examples:
"q" -> ("queries", true)
"t" -> ("tables", true)
"dash" -> ("dashboard", true)
Click to show internal directories.
Click to hide internal directories.