// NewDestroyCommand returns a DestroyCommand with the systemmanager and client // endpoints mocked out. func NewDestroyCommand(api destroySystemAPI, clientapi destroyClientAPI, apierr error) cmd.Command { return envcmd.WrapBase(&destroyCommand{ destroyCommandBase: destroyCommandBase{ api: api, clientapi: clientapi, apierr: apierr, }, }) }
// NewKillCommand returns a killCommand with the systemmanager and client // endpoints mocked out. func NewKillCommand(api destroySystemAPI, clientapi destroyClientAPI, apierr error, dialFunc func(string) (api.Connection, error)) cmd.Command { return envcmd.WrapBase(&killCommand{ destroyCommandBase{ api: api, clientapi: clientapi, apierr: apierr, }, dialFunc, }) }
func newKillCommand() cmd.Command { return envcmd.WrapBase(&killCommand{}) }
// NewLoginCommand returns a command to allow the user to login to a controller. func NewLoginCommand() cmd.Command { return envcmd.WrapBase(&loginCommand{}) }
func newDestroyCommand() cmd.Command { return envcmd.WrapBase(&destroyCommand{}) }
// NewListCommand returns a command to list the controllers the user knows about. func NewListCommand() cmd.Command { return envcmd.WrapBase(&listCommand{}) }