Files
paseo/packages/cli/src/index.ts
Mohamed Boudra 4ca04fc661 feat(desktop): add daemon status dialog to built-in daemon settings
Add a "Full status" button in the desktop daemon section that runs
`paseo daemon status` via Electron IPC and displays the raw output
in a modal.

Also fixes Commander.js argv parsing when the CLI is invoked via
Electron's ELECTRON_RUN_AS_NODE — Commander auto-detects the Electron
environment and skips only 1 argv element instead of 2, causing
"unknown command" errors. Fixed by explicitly passing { from: "node" }.
2026-04-03 18:49:59 +07:00

8 lines
181 B
TypeScript

import { createCli } from "./cli.js";
const program = createCli();
if (process.argv.length <= 2) {
process.argv.push("onboard");
}
program.parse(process.argv, { from: "node" });