MCPcopy Index your code
hub / github.com/containers/toolbox / createPromptForDownload

Function createPromptForDownload

src/cmd/create.go:757–766  ·  view source on GitHub ↗
(imageFull, imageSize string)

Source from the content-addressed store, hash-verified

755}
756
757func createPromptForDownload(imageFull, imageSize string) string {
758 var prompt string
759 if imageSize == "" {
760 prompt = fmt.Sprintf("Download %s? [y/N]:", imageFull)
761 } else {
762 prompt = fmt.Sprintf("Download %s (%s)? [y/N]:", imageFull, imageSize)
763 }
764
765 return prompt
766}
767
768func showPromptForDownloadFirst(imageFull string) (bool, error) {
769 prompt := createPromptForDownload(imageFull, " ... MB")

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…