(value: string | undefined)
| 92 | } |
| 93 | |
| 94 | function parseLogLevel(value: string | undefined): LogLevel { |
| 95 | if (!value || value === "info") return "info"; |
| 96 | if (["silent", "error", "warn", "debug"].includes(value)) return value as LogLevel; |
| 97 | |
| 98 | throw new Error(`Invalid DEVSPACE_LOG_LEVEL: ${value}`); |
| 99 | } |
| 100 | |
| 101 | function parseLogFormat(value: string | undefined): LogFormat { |
| 102 | if (!value || value === "json") return "json"; |
no outgoing calls
no test coverage detected