cli/command/*: remove deprecated cobra command constructors
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -11,13 +11,6 @@ func init() {
|
||||
commands.Register(newVolumeCommand)
|
||||
}
|
||||
|
||||
// NewVolumeCommand returns a cobra command for `volume` subcommands
|
||||
//
|
||||
// Deprecated: Do not import commands directly. They will be removed in a future release.
|
||||
func NewVolumeCommand(dockerCLI command.Cli) *cobra.Command {
|
||||
return newVolumeCommand(dockerCLI)
|
||||
}
|
||||
|
||||
// newVolumeCommand returns a cobra command for `volume` subcommands
|
||||
func newVolumeCommand(dockerCLI command.Cli) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
|
||||
@ -29,13 +29,6 @@ type pruneOptions struct {
|
||||
filter opts.FilterOpt
|
||||
}
|
||||
|
||||
// NewPruneCommand returns a new cobra prune command for volumes
|
||||
//
|
||||
// Deprecated: Do not import commands directly. They will be removed in a future release.
|
||||
func NewPruneCommand(dockerCLI command.Cli) *cobra.Command {
|
||||
return newPruneCommand(dockerCLI)
|
||||
}
|
||||
|
||||
// newPruneCommand returns a new cobra prune command for volumes
|
||||
func newPruneCommand(dockerCLI command.Cli) *cobra.Command {
|
||||
options := pruneOptions{filter: opts.NewFilterOpt()}
|
||||
|
||||
Reference in New Issue
Block a user