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

Function listToPromptOptions

internal/init/prompts.go:362–371  ·  view source on GitHub ↗
(list []string)

Source from the content-addressed store, hash-verified

360}
361
362func listToPromptOptions(list []string) yaml.MapSlice {
363 mapSlice := make(yaml.MapSlice, len(list))
364 for i := 0; i < len(list); i++ {
365 mapSlice[i] = yaml.MapItem{
366 Key: list[i],
367 Value: list[i],
368 }
369 }
370 return mapSlice
371}

Callers 1

promptAWSProfilePickerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected