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 // nolint: interfacer func NewSystemCommand(dockerCli *command.DockerCli) *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), ) return cmd }