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

Function imageImportShellComplete

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

Source from the content-addressed store, hash-verified

125}
126
127func imageImportShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
128 return completion.ImageNames(cmd)
129}
130
131func hasHTTPPrefix(s string) bool {
132 return strings.HasPrefix(s, "http://") || strings.HasPrefix(s, "https://")

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…