MCPcopy Index your code
hub / github.com/docker/cli / newSystemCommand

Function newSystemCommand

cli/command/system/cmd.go:19–37  ·  view source on GitHub ↗

newSystemCommand returns a cobra command for `system` subcommands

(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

17
18// newSystemCommand returns a cobra command for `system` subcommands
19func 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}

Callers

nothing calls this directly

Calls 6

newEventsCommandFunction · 0.85
newInfoCommandFunction · 0.85
newDiskUsageCommandFunction · 0.85
newDialStdioCommandFunction · 0.85
newPruneCommandFunction · 0.70
ErrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…