Exemplo n.º 1
0
// NewFilesystemSuperCommand creates the storage filesystem super subcommand and
// registers the subcommands that it supports.
func NewFilesystemSuperCommand() cmd.Command {
	supercmd := jujucmd.NewSubSuperCommand(cmd.SuperCommandParams{
		Name:        "filesystem",
		Doc:         filesystemCmdDoc,
		UsagePrefix: "juju storage",
		Purpose:     filesystemCmdPurpose,
	})
	supercmd.Register(envcmd.Wrap(&FilesystemListCommand{}))
	return supercmd
}
Exemplo n.º 2
0
// NewVolumeSuperCommand creates the storage volume super subcommand and
// registers the subcommands that it supports.
func NewVolumeSuperCommand() cmd.Command {
	poolcmd := jujucmd.NewSubSuperCommand(cmd.SuperCommandParams{
		Name:        "volume",
		Doc:         volumeCmdDoc,
		UsagePrefix: "juju storage",
		Purpose:     volumeCmdPurpose,
	})
	poolcmd.Register(envcmd.Wrap(&VolumeListCommand{}))
	return poolcmd
}
Exemplo n.º 3
0
// newVolumeSuperCommand creates the storage volume super subcommand and
// registers the subcommands that it supports.
func newVolumeSuperCommand() cmd.Command {
	supercmd := jujucmd.NewSubSuperCommand(cmd.SuperCommandParams{
		Name:        "volume",
		Doc:         volumeCmdDoc,
		UsagePrefix: "juju storage",
		Purpose:     volumeCmdPurpose,
	})
	supercmd.Register(newVolumeListCommand())
	return supercmd
}
Exemplo n.º 4
0
Arquivo: pool.go Projeto: exekias/juju
// newPoolSuperCommand creates the storage pool super subcommand and
// registers the subcommands that it supports.
func newPoolSuperCommand() cmd.Command {
	poolcmd := jujucmd.NewSubSuperCommand(cmd.SuperCommandParams{
		Name:        "pool",
		Doc:         poolCmdDoc,
		UsagePrefix: "juju storage",
		Purpose:     poolCmdPurpose,
	})
	poolcmd.Register(newPoolListCommand())
	poolcmd.Register(newPoolCreateCommand())
	return poolcmd
}