MCPcopy Index your code
hub / github.com/coder/coder / formatPresetParameters

Function formatPresetParameters

cli/templatepresets.go:154–160  ·  view source on GitHub ↗
(params []codersdk.PresetParameter)

Source from the content-addressed store, hash-verified

152}
153
154func formatPresetParameters(params []codersdk.PresetParameter) string {
155 var paramsStr []string
156 for _, p := range params {
157 paramsStr = append(paramsStr, fmt.Sprintf("%s=%s", p.Name, p.Value))
158 }
159 return strings.Join(paramsStr, ",")
160}
161
162// templatePresetsToRows converts a list of presets to a list of rows
163// for outputting.

Callers 1

templatePresetsToRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected