Documentation ¶
Overview ¶
Package cli provides a command line interface that allows for interaction with a Seesaw cluster.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCommand ¶
FindCommand tokenises a command line and attempts to locate the corresponding Command. If a matching command is found it is returned, along with the remaining arguments. If the command has sub-commands then the list of sub-commands is returned instead. A chain of matched commands is also returned, along with the slice of remaining arguments.
Types ¶
type Command ¶
type Command struct { Command string Subcommands *[]Command // contains filtered or unexported fields }
Command represents a command that can be executed from the CLI.
type SeesawCLI ¶
type SeesawCLI struct {
// contains filtered or unexported fields
}
SeesawCLI represents a Seesaw command line interface.
func NewSeesawCLI ¶
NewSeesawCLI returns a new Seesaw command line interface.
Click to show internal directories.
Click to hide internal directories.