示例#1
0
// 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,
		},
	})
}
示例#2
0
// 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,
	})
}
示例#3
0
文件: kill.go 项目: snailwalker/juju
func newKillCommand() cmd.Command {
	return envcmd.WrapBase(&killCommand{})
}
示例#4
0
文件: login.go 项目: imoapps/juju
// NewLoginCommand returns a command to allow the user to login to a controller.
func NewLoginCommand() cmd.Command {
	return envcmd.WrapBase(&loginCommand{})
}
示例#5
0
func newDestroyCommand() cmd.Command {
	return envcmd.WrapBase(&destroyCommand{})
}
示例#6
0
文件: list.go 项目: imoapps/juju
// NewListCommand returns a command to list the controllers the user knows about.
func NewListCommand() cmd.Command {
	return envcmd.WrapBase(&listCommand{})
}