@todoforai/cli 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/todoai.js +6 -2
- package/package.json +1 -1
package/dist/todoai.js
CHANGED
|
@@ -44885,8 +44885,12 @@ Cancelled by user (Ctrl+C)
|
|
|
44885
44885
|
`);
|
|
44886
44886
|
try {
|
|
44887
44887
|
const { spawn } = await import("child_process");
|
|
44888
|
-
|
|
44889
|
-
|
|
44888
|
+
if (process.platform === "win32") {
|
|
44889
|
+
spawn("cmd", ["/c", "start", "", url], { stdio: "ignore", detached: true }).unref();
|
|
44890
|
+
} else {
|
|
44891
|
+
const cmd = process.platform === "darwin" ? "open" : "xdg-open";
|
|
44892
|
+
spawn(cmd, [url], { stdio: "ignore", detached: true }).unref();
|
|
44893
|
+
}
|
|
44890
44894
|
} catch {}
|
|
44891
44895
|
process.stderr.write(`Waiting for approval (expires in ${Math.round(expiresIn / 60)}min)...
|
|
44892
44896
|
`);
|