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

Function stopShellComplete

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

Source from the content-addressed store, hash-verified

92}
93
94func stopShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
95 // show non-stopped container names
96 statusFilterFn := func(st containerd.ProcessStatus) bool {
97 return st != containerd.Stopped && st != containerd.Created && st != containerd.Unknown
98 }
99 return completion.ContainerNames(cmd, statusFilterFn)
100}

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…