mirror of https://github.com/docker/cli.git
27 lines
581 B
Go
27 lines
581 B
Go
package system
|
|
|
|
import (
|
|
"github.com/docker/cli/cli"
|
|
"github.com/docker/cli/cli/command"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// NewSystemCommand returns a cobra command for `system` subcommands
|
|
func NewSystemCommand(dockerCli command.Cli) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "system",
|
|
Short: "Manage Docker",
|
|
Args: cli.NoArgs,
|
|
RunE: command.ShowHelp(dockerCli.Err()),
|
|
}
|
|
cmd.AddCommand(
|
|
NewEventsCommand(dockerCli),
|
|
NewInfoCommand(dockerCli),
|
|
newDiskUsageCommand(dockerCli),
|
|
newPruneCommand(dockerCli),
|
|
newDialStdioCommand(dockerCli),
|
|
)
|
|
|
|
return cmd
|
|
}
|