Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mode ¶
type Mode interface { // Returns suggestions for your cli command based on the current prompt Completer(d prompt.Document) []prompt.Suggest // Handle the typed in prompt selection HandleSelection(currCmd Mode, selection string, args []string) // Defines a custom cli prompt prefixes CliPrefix() (string, bool) // The name of the mode, will be used as the string in mode change commands Name() string // Handle the command (this is so the mode can be used with exec mode) HandleCommand(args []string) }
Interface for CLI Modes
Click to show internal directories.
Click to hide internal directories.