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

Function newListCommand

cli/command/image/list.go:81–86  ·  view source on GitHub ↗
(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

79}
80
81func newListCommand(dockerCLI command.Cli) *cobra.Command {
82 cmd := *newImagesCommand(dockerCLI)
83 cmd.Aliases = []string{"list"}
84 cmd.Use = "ls [OPTIONS] [REPOSITORY[:TAG]]"
85 return &cmd
86}
87
88func runImages(ctx context.Context, dockerCLI command.Cli, options imagesOptions) (int, error) {
89 filters := options.filter.Value()

Callers 2

newImageCommandFunction · 0.70
TestNewListCommandAliasFunction · 0.70

Calls 1

newImagesCommandFunction · 0.85

Tested by 1

TestNewListCommandAliasFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…