(name string)
| 362 | } |
| 363 | |
| 364 | func BuildEnvVariable(name string) string { |
| 365 | name = strings.TrimSpace(name) |
| 366 | name = strings.ToUpper(name) |
| 367 | name = strings.ReplaceAll(name, " ", "_") |
| 368 | name = strings.ReplaceAll(name, "-", "_") |
| 369 | name = strings.ReplaceAll(name, ".", "_") |
| 370 | return name |
| 371 | } |
| 372 | |
| 373 | // stdinReader is shared between prompts. A bufio.Reader reads ahead, so a |
| 374 | // reader created for every question would drop the rest of the buffered input, |
no outgoing calls
no test coverage detected