@rogatio/cli 5.7.1 → 5.7.2
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/README.md +1 -1
- package/dist/node/index.js +13 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ rogatio <command> [options]
|
|
|
36
36
|
|
|
37
37
|
| Command | Description |
|
|
38
38
|
| --- | --- |
|
|
39
|
-
| `rogatio edit [path]` | Launch the browser editor for `.rogatio.json`. |
|
|
39
|
+
| `rogatio edit [path]` | Launch the browser editor for `.rogatio.json`. `--port <n>` fixes the port; `--no-open` skips opening a browser. |
|
|
40
40
|
| `rogatio verify [path]` | Validate a `.rogatio.json` file (schema + compiler). |
|
|
41
41
|
| `rogatio test [path] [url...]` | Run offline dry-run tests against `.rogatio.json`. |
|
|
42
42
|
| `rogatio ai <setup\|ls\|show\|delete\|test>` | AI provider configuration. `setup` interactive; `ls` list; `show` redacted; `delete` remove; `test` connection. |
|
package/dist/node/index.js
CHANGED
|
@@ -22832,6 +22832,7 @@ Arguments:
|
|
|
22832
22832
|
|
|
22833
22833
|
Options:
|
|
22834
22834
|
--port <n> Fixed port for editor server (default: random)
|
|
22835
|
+
--no-open Start the editor server without opening a browser
|
|
22835
22836
|
--help, -h Show this help
|
|
22836
22837
|
|
|
22837
22838
|
The editor runs in your default browser and communicates with a local server
|
|
@@ -24390,6 +24391,7 @@ async function editCommand(args, options = {}) {
|
|
|
24390
24391
|
const storage = options.storage ?? createJsonFileProjectStorage();
|
|
24391
24392
|
const positionalArgs = [];
|
|
24392
24393
|
let port;
|
|
24394
|
+
let noOpen = false;
|
|
24393
24395
|
for (let i = 0; i < args.length; i++) {
|
|
24394
24396
|
const arg = args[i];
|
|
24395
24397
|
if (arg === "--port" && i + 1 < args.length) {
|
|
@@ -24399,6 +24401,8 @@ async function editCommand(args, options = {}) {
|
|
|
24399
24401
|
return { exitCode: Promise.resolve(2), shutdown: () => {
|
|
24400
24402
|
} };
|
|
24401
24403
|
}
|
|
24404
|
+
} else if (arg === "--no-open") {
|
|
24405
|
+
noOpen = true;
|
|
24402
24406
|
} else if (!arg.startsWith("-")) {
|
|
24403
24407
|
positionalArgs.push(arg);
|
|
24404
24408
|
} else if (arg === "--help") {
|
|
@@ -24510,12 +24514,16 @@ async function editCommand(args, options = {}) {
|
|
|
24510
24514
|
shutdownCalled = true;
|
|
24511
24515
|
server.stop();
|
|
24512
24516
|
}
|
|
24513
|
-
|
|
24514
|
-
|
|
24515
|
-
|
|
24516
|
-
|
|
24517
|
+
if (!noOpen) {
|
|
24518
|
+
const browserLaunched = await (customLaunchBrowser ?? launchBrowser)(
|
|
24519
|
+
editorUrl
|
|
24520
|
+
);
|
|
24521
|
+
if (!browserLaunched) {
|
|
24522
|
+
console.log(`Editor available at: ${editorUrl}`);
|
|
24523
|
+
console.log("Open this URL in your browser to edit the project.");
|
|
24524
|
+
}
|
|
24525
|
+
} else {
|
|
24517
24526
|
console.log(`Editor available at: ${editorUrl}`);
|
|
24518
|
-
console.log("Open this URL in your browser to edit the project.");
|
|
24519
24527
|
}
|
|
24520
24528
|
const exitCodePromise = new Promise((resolve9) => {
|
|
24521
24529
|
const checkShutdown = setInterval(() => {
|
package/package.json
CHANGED