mirror of https://github.com/docker/cli.git
Merge pull request #312 from thaJeztah/remove-unused-prune-functions
Remove unused prune functions
This commit is contained in:
commit
6908e58f0f
|
@ -7,29 +7,8 @@ import (
|
||||||
"github.com/docker/cli/cli/command/network"
|
"github.com/docker/cli/cli/command/network"
|
||||||
"github.com/docker/cli/cli/command/volume"
|
"github.com/docker/cli/cli/command/volume"
|
||||||
"github.com/docker/cli/opts"
|
"github.com/docker/cli/opts"
|
||||||
"github.com/spf13/cobra"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewContainerPruneCommand returns a cobra prune command for containers
|
|
||||||
func NewContainerPruneCommand(dockerCli command.Cli) *cobra.Command {
|
|
||||||
return container.NewPruneCommand(dockerCli)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewVolumePruneCommand returns a cobra prune command for volumes
|
|
||||||
func NewVolumePruneCommand(dockerCli command.Cli) *cobra.Command {
|
|
||||||
return volume.NewPruneCommand(dockerCli)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewImagePruneCommand returns a cobra prune command for images
|
|
||||||
func NewImagePruneCommand(dockerCli command.Cli) *cobra.Command {
|
|
||||||
return image.NewPruneCommand(dockerCli)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewNetworkPruneCommand returns a cobra prune command for Networks
|
|
||||||
func NewNetworkPruneCommand(dockerCli command.Cli) *cobra.Command {
|
|
||||||
return network.NewPruneCommand(dockerCli)
|
|
||||||
}
|
|
||||||
|
|
||||||
// RunContainerPrune executes a prune command for containers
|
// RunContainerPrune executes a prune command for containers
|
||||||
func RunContainerPrune(dockerCli command.Cli, filter opts.FilterOpt) (uint64, string, error) {
|
func RunContainerPrune(dockerCli command.Cli, filter opts.FilterOpt) (uint64, string, error) {
|
||||||
return container.RunPrune(dockerCli, filter)
|
return container.RunPrune(dockerCli, filter)
|
||||||
|
|
Loading…
Reference in New Issue