MCPcopy Index your code
hub / github.com/21st-dev/1code / getCliSourcePath

Function getCliSourcePath

src/main/lib/cli.ts:58–64  ·  view source on GitHub ↗

* Get the CLI source path (where the CLI script is bundled)

()

Source from the content-addressed store, hash-verified

56 * Get the CLI source path (where the CLI script is bundled)
57 */
58function getCliSourcePath(): string {
59 const cliName = platform.getCliConfig().scriptName
60 if (app.isPackaged) {
61 return join(process.resourcesPath, "cli", cliName)
62 }
63 return join(__dirname, "..", "..", "resources", "cli", cliName)
64}
65
66/**
67 * Check if the CLI command is installed

Callers 2

isCliInstalledFunction · 0.85
installCliFunction · 0.85

Calls 1

getCliConfigMethod · 0.65

Tested by

no test coverage detected