(params []codersdk.PresetParameter)
| 152 | } |
| 153 | |
| 154 | func 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. |
no outgoing calls
no test coverage detected