create-egregore 0.8.2 → 0.9.0
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/bin/cli.js +6 -6
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Four modes:
|
|
7
7
|
* npx create-egregore --token st_xxxx (from website — connected mode)
|
|
8
8
|
* npx create-egregore (interactive — API-based, existing)
|
|
9
|
-
* npx create-egregore --
|
|
9
|
+
* npx create-egregore --open (local mode — founder, no API)
|
|
10
10
|
* npx create-egregore join <org> (local mode — join existing)
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -27,8 +27,8 @@ function parseArgs(argv) {
|
|
|
27
27
|
args.token = argv[i].split("=")[1];
|
|
28
28
|
} else if (argv[i] === "--api" && argv[i + 1]) {
|
|
29
29
|
args.api = argv[++i];
|
|
30
|
-
} else if (argv[i] === "--
|
|
31
|
-
args.
|
|
30
|
+
} else if (argv[i] === "--open") {
|
|
31
|
+
args.open = true;
|
|
32
32
|
} else if (argv[i] === "--help" || argv[i] === "-h") {
|
|
33
33
|
args.help = true;
|
|
34
34
|
} else if (!argv[i].startsWith("-")) {
|
|
@@ -46,12 +46,12 @@ function showHelp() {
|
|
|
46
46
|
ui.banner();
|
|
47
47
|
ui.info("Usage:");
|
|
48
48
|
ui.info(" npx create-egregore Interactive setup (API)");
|
|
49
|
-
ui.info(" npx create-egregore --
|
|
49
|
+
ui.info(" npx create-egregore --open New project (local mode)");
|
|
50
50
|
ui.info(" npx create-egregore join <org>[/<repo>] Join existing project");
|
|
51
51
|
ui.info(" npx create-egregore --token <setup-token> Install from website");
|
|
52
52
|
ui.info("");
|
|
53
53
|
ui.info("Options:");
|
|
54
|
-
ui.info(" --
|
|
54
|
+
ui.info(" --open Local mode — no API server needed");
|
|
55
55
|
ui.info(" --token <token> Setup token from egregore.xyz");
|
|
56
56
|
ui.info(" --api <url> API URL override");
|
|
57
57
|
ui.info(" -h, --help Show this help");
|
|
@@ -80,7 +80,7 @@ async function main() {
|
|
|
80
80
|
}
|
|
81
81
|
const { localJoinFlow } = require("../lib/local");
|
|
82
82
|
await localJoinFlow(args.joinOrg, ui);
|
|
83
|
-
} else if (args.
|
|
83
|
+
} else if (args.open) {
|
|
84
84
|
// ===== Local mode: founder (explicit opt-in) =====
|
|
85
85
|
const { localFounderFlow } = require("../lib/local");
|
|
86
86
|
await localFounderFlow(ui);
|