(imageFull, imageSize string)
| 755 | } |
| 756 | |
| 757 | func 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 | |
| 768 | func showPromptForDownloadFirst(imageFull string) (bool, error) { |
| 769 | prompt := createPromptForDownload(imageFull, " ... MB") |
no outgoing calls
no test coverage detected
searching dependent graphs…