MCPcopy Index your code
hub / github.com/Waishnav/devspace / parseWidgetMode

Function parseWidgetMode

src/config.ts:156–161  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

154}
155
156function 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
163function parseRequiredSecret(value: string | undefined, name: string): string {
164 const secret = value?.trim();

Callers 1

loadConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected