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

Function pauseShellComplete

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

Source from the content-addressed store, hash-verified

68}
69
70func pauseShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
71 // show running container names
72 statusFilterFn := func(st containerd.ProcessStatus) bool {
73 return st == containerd.Running
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…