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

Function printVersion

src/cli.ts:279–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277}
278
279function printVersion(): void {
280 const packageJson = require("../package.json") as { version?: unknown };
281 if (typeof packageJson.version !== "string") {
282 throw new Error("Unable to read DevSpace package version.");
283 }
284
285 console.log(packageJson.version);
286}
287
288function normalizeOptionalPublicBaseUrl(value: string): string | null {
289 const trimmed = value.trim();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected