MCPcopy Create free account
hub / github.com/containerd/nerdctl / startShellComplete

Function startShellComplete

cmd/nerdctl/container/container_start.go:105–111  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string, toComplete string)

Source from the content-addressed store, hash-verified

103}
104
105func startShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
106 // show non-running container names
107 statusFilterFn := func(st containerd.ProcessStatus) bool {
108 return st != containerd.Running && st != containerd.Unknown
109 }
110 return completion.ContainerNames(cmd, statusFilterFn)
111}

Callers

nothing calls this directly

Calls 1

ContainerNamesFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…