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

Function inspectShellComplete

cmd/nerdctl/inspect/inspect.go:180–186  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string, toComplete string)

Source from the content-addressed store, hash-verified

178}
179
180func inspectShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
181 // show container names
182 containers, _ := completion.ContainerNames(cmd, nil)
183 // show image names
184 images, _ := completion.ImageNames(cmd)
185 return append(containers, images...), cobra.ShellCompDirectiveNoFileComp
186}

Callers

nothing calls this directly

Calls 2

ContainerNamesFunction · 0.92
ImageNamesFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…