MCPcopy Create free account
hub / github.com/commitdev/zero / sanitizeParameterValue

Function sanitizeParameterValue

internal/init/prompts.go:253–256  ·  view source on GitHub ↗

aws cli prints output with linebreak in them

(str string)

Source from the content-addressed store, hash-verified

251
252// aws cli prints output with linebreak in them
253func 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
259func PromptModuleParams(moduleConfig moduleconfig.ModuleConfig, parameters map[string]string) (map[string]string, error) {

Callers 1

RunPromptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected