(ctx context.Context, dockerCLI command.Cli, container string, opts listOptions)
| 37 | } |
| 38 | |
| 39 | func 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 | } |
no test coverage detected
searching dependent graphs…