Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
List is a list of sub command entires.
func (*List) Add ¶
Add adds a sub command entry. It panics if already exists a command with the same name.
func (*List) AddHost ¶
AddHost adds a sub command entry that can accept a host target. It panics if already exists a command with the same name.
func (*List) Main ¶
func (lst *List) Main()
Main runs with os.Args, and calls os.Exit if the return value is not 0.
func (*List) SetDefaultServer ¶
SetDefaultServer sets the default server for commands that has a host.
Click to show internal directories.
Click to hide internal directories.