Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddBatchContext ¶
type AddBatchContext struct {
Nodes *int
Cluster *string
Datacenter *string
HostFormat *string
Subnet *string
}
AddBatchContext Represents context information about the AddBatch command.
type AddContext ¶
type AddContext struct {
// Progress *pb.ProgressBar
Cluster *string
Datacenter *string
Host *string
IPAddress *string
// contains filtered or unexported fields
}
AddContext Represents context information about the Add command.
type Command ¶
type Command struct {
Progress *pb.ProgressBar
Results []string
NumberOfSteps int
Steps []RunFunc
Context interface{}
NoProgress *bool
IsSubCommand bool
RequiresSudo bool
}
Command Represents a command.
func NewAddBatchCommand ¶
func NewAddBatchCommand() *Command
NewAddBatchCommand Returns a new instance of AddBatch Command.
func NewAddCommand ¶
func NewAddCommand() *Command
NewAddCommand Returns a new instance of Add Command.
func NewCommand ¶
NewCommand Returns a new instance of Command.
func NewRemoveBatchCommand ¶
func NewRemoveBatchCommand() *Command
NewRemoveBatchCommand Returns a new instance of RemoveBatch Command.
func NewRemoveCommand ¶
func NewRemoveCommand() *Command
NewRemoveCommand Returns a new instance of Remove Command.
func (*Command) Run ¶
func (cmd *Command) Run(c *kingpin.ParseContext) error
Run Executes the command.
func (*Command) SetContext ¶
func (cmd *Command) SetContext(context interface{})
SetContext Sets the commands context.
type RemoveBatchContext ¶
RemoveBatchContext Represents context information about the RemoveBatch command.
type RemoveContext ¶
RemoveContext Represents context information about the Remove command.