mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
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" }.
8 lines
181 B
TypeScript
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" });
|