aws cli prints output with linebreak in them
(str string)
| 251 | |
| 252 | // aws cli prints output with linebreak in them |
| 253 | func sanitizeParameterValue(str string) string { |
| 254 | re := regexp.MustCompile("\\n") |
| 255 | return re.ReplaceAllString(str, "") |
| 256 | } |
| 257 | |
| 258 | // PromptModuleParams renders series of prompt UI based on the config |
| 259 | func PromptModuleParams(moduleConfig moduleconfig.ModuleConfig, parameters map[string]string) (map[string]string, error) { |