newSystemCommand returns a cobra command for `system` subcommands
(dockerCLI command.Cli)
| 17 | |
| 18 | // newSystemCommand returns a cobra command for `system` subcommands |
| 19 | func newSystemCommand(dockerCLI command.Cli) *cobra.Command { |
| 20 | cmd := &cobra.Command{ |
| 21 | Use: "system", |
| 22 | Short: "Manage Docker", |
| 23 | Args: cli.NoArgs, |
| 24 | RunE: command.ShowHelp(dockerCLI.Err()), |
| 25 | |
| 26 | DisableFlagsInUseLine: true, |
| 27 | } |
| 28 | cmd.AddCommand( |
| 29 | newEventsCommand(dockerCLI), |
| 30 | newInfoCommand(dockerCLI), |
| 31 | newDiskUsageCommand(dockerCLI), |
| 32 | newPruneCommand(dockerCLI), |
| 33 | newDialStdioCommand(dockerCLI), |
| 34 | ) |
| 35 | |
| 36 | return cmd |
| 37 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…