* Get the CLI source path (where the CLI script is bundled)
()
| 56 | * Get the CLI source path (where the CLI script is bundled) |
| 57 | */ |
| 58 | function 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 |
no test coverage detected