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

Function killShellComplete

cmd/nerdctl/container/container_kill.go:70–76  ·  view source on GitHub ↗
(cmd *cobra.Command, _ []string, _ string)

Source from the content-addressed store, hash-verified

68}
69
70func killShellComplete(cmd *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) {
71 // show non-stopped container names
72 statusFilterFn := func(st containerd.ProcessStatus) bool {
73 return st != containerd.Stopped && st != containerd.Created && st != containerd.Unknown
74 }
75 return completion.ContainerNames(cmd, statusFilterFn)
76}

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…