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

Function newListCommand

cli/command/container/list.go:64–69  ·  view source on GitHub ↗
(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

62}
63
64func newListCommand(dockerCLI command.Cli) *cobra.Command {
65 cmd := *newPsCommand(dockerCLI)
66 cmd.Aliases = []string{"ps", "list"}
67 cmd.Use = "ls [OPTIONS]"
68 return &cmd
69}
70
71func buildContainerListOptions(options *psOptions) (client.ContainerListOptions, error) {
72 listOptions := client.ContainerListOptions{

Calls 1

newPsCommandFunction · 0.70

Used in the wild real call sites across dependent graphs

searching dependent graphs…