better prune and system df

Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
allencloud
2016-10-11 00:42:21 +08:00
parent 0c6d66b89a
commit 871b692833
6 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func NewDiskUsageCommand(dockerCli *command.DockerCli) *cobra.Command {
cmd := &cobra.Command{
Use: "df [OPTIONS]",
Short: "Show docker disk usage",
Args: cli.RequiresMaxArgs(1),
Args: cli.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
return runDiskUsage(dockerCli, opts)
},
+2 -2
View File
@@ -15,13 +15,13 @@ type pruneOptions struct {
all bool
}
// NewPruneCommand creates a new cobra.Command for `docker du`
// NewPruneCommand creates a new cobra.Command for `docker prune`
func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
var opts pruneOptions
cmd := &cobra.Command{
Use: "prune [OPTIONS]",
Short: "Remove unused data.",
Short: "Remove unused data",
Args: cli.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
return runPrune(dockerCli, opts)