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

Function normalizeCommand

src/cli.ts:51–57  ·  view source on GitHub ↗
(command: string | undefined)

Source from the content-addressed store, hash-verified

49}
50
51function normalizeCommand(command: string | undefined): Command {
52 if (!command || command === "serve" || command === "start") return "serve";
53 if (command === "init" || command === "doctor" || command === "config") return command;
54 if (command === "help" || command === "--help" || command === "-h") return "help";
55 if (command === "version" || command === "--version" || command === "-v") return "version";
56 throw new Error(`Unknown command: ${command}`);
57}
58
59async function ensureConfigured(): Promise<void> {
60 const files = loadDevspaceFiles();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected