// 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 }
// 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 }
// 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 }
// 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 }