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

Function runList

cli/command/checkpoint/list.go:39–52  ·  view source on GitHub ↗
(ctx context.Context, dockerCLI command.Cli, container string, opts listOptions)

Source from the content-addressed store, hash-verified

37}
38
39func runList(ctx context.Context, dockerCLI command.Cli, container string, opts listOptions) error {
40 checkpoints, err := dockerCLI.Client().CheckpointList(ctx, container, client.CheckpointListOptions{
41 CheckpointDir: opts.checkpointDir,
42 })
43 if err != nil {
44 return err
45 }
46
47 cpCtx := formatter.Context{
48 Output: dockerCLI.Out(),
49 Format: newFormat(formatter.TableFormatKey),
50 }
51 return formatWrite(cpCtx, checkpoints.Items)
52}

Callers 1

newListCommandFunction · 0.70

Calls 5

CheckpointListMethod · 0.80
newFormatFunction · 0.70
formatWriteFunction · 0.70
ClientMethod · 0.65
OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…