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

Function imagesShellComplete

cmd/nerdctl/image/image_list.go:146–152  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string, toComplete string)

Source from the content-addressed store, hash-verified

144}
145
146func imagesShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
147 if len(args) == 0 {
148 // show image names
149 return completion.ImageNames(cmd)
150 }
151 return nil, cobra.ShellCompDirectiveNoFileComp
152}

Callers

nothing calls this directly

Calls 1

ImageNamesFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…