(value: string | undefined)
| 154 | } |
| 155 | |
| 156 | function parseWidgetMode(value: string | undefined): WidgetMode { |
| 157 | if (!value || value === "full") return "full"; |
| 158 | if (value === "off" || value === "changes") return value; |
| 159 | |
| 160 | throw new Error(`Invalid DEVSPACE_WIDGETS: ${value}`); |
| 161 | } |
| 162 | |
| 163 | function parseRequiredSecret(value: string | undefined, name: string): string { |
| 164 | const secret = value?.trim(); |