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

Function newCheckpointCommand

cli/command/checkpoint/cmd.go:15–34  ·  view source on GitHub ↗

newCheckpointCommand returns the `checkpoint` subcommand (only in experimental)

(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

13
14// newCheckpointCommand returns the `checkpoint` subcommand (only in experimental)
15func newCheckpointCommand(dockerCLI command.Cli) *cobra.Command {
16 cmd := &cobra.Command{
17 Use: "checkpoint",
18 Short: "Manage checkpoints",
19 Args: cli.NoArgs,
20 RunE: command.ShowHelp(dockerCLI.Err()),
21 Annotations: map[string]string{
22 "experimental": "",
23 "ostype": "linux",
24 "version": "1.25",
25 },
26 DisableFlagsInUseLine: true,
27 }
28 cmd.AddCommand(
29 newCreateCommand(dockerCLI),
30 newListCommand(dockerCLI),
31 newRemoveCommand(dockerCLI),
32 )
33 return cmd
34}

Callers

nothing calls this directly

Calls 4

newCreateCommandFunction · 0.70
newListCommandFunction · 0.70
newRemoveCommandFunction · 0.70
ErrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…