Esempio 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
}
Esempio 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
}
Esempio 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
}
Esempio n. 4
0
File: pool.go Progetto: 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
}