y/n confirmation prompt
(msg string)
| 126 | |
| 127 | // y/n confirmation prompt |
| 128 | func confirmationPrompt(msg string) bool { |
| 129 | fmt.Printf("%s\nPlease confirm to continue y/N\n", msg) |
| 130 | var gotChallenge string |
| 131 | fmt.Scanln(&gotChallenge) |
| 132 | |
| 133 | return gotChallenge == "y" || gotChallenge == "Y" |
| 134 | } |
| 135 | |
| 136 | // parseMaxBytesOption validates and parses the --max-bytes flag value. |
| 137 | // It stores the parsed result in parsedMaxBytes for child commands to use. |
no outgoing calls
no test coverage detected