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

Function execShellComplete

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

Source from the content-addressed store, hash-verified

145}
146
147func execShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
148 if len(args) == 0 {
149 // show running container names
150 statusFilterFn := func(st containerd.ProcessStatus) bool {
151 return st == containerd.Running
152 }
153 return completion.ContainerNames(cmd, statusFilterFn)
154 }
155 return nil, cobra.ShellCompDirectiveNoFileComp
156}

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…