@geastack/cli 0.1.6 → 0.1.7
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/package.json +1 -1
- package/src/create-geastack.mjs +15 -5
- package/src/gea.mjs +1 -1
package/package.json
CHANGED
package/src/create-geastack.mjs
CHANGED
|
@@ -22,9 +22,10 @@ export async function runCreateGeastack(argv, io = {}) {
|
|
|
22
22
|
const stdout = io.stdout || console.log
|
|
23
23
|
const env = io.env || process.env
|
|
24
24
|
const cwd = io.cwd || process.cwd()
|
|
25
|
+
const commandName = io.commandName || 'create-geastack'
|
|
25
26
|
|
|
26
27
|
if (flag(parsed, 'help') || parsed.positionals[0] === 'help') {
|
|
27
|
-
stdout(usage())
|
|
28
|
+
stdout(usage(commandName))
|
|
28
29
|
return 0
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -448,19 +449,28 @@ function ensureJson(filePath, create) {
|
|
|
448
449
|
if (!exists(filePath)) writeJson(filePath, create())
|
|
449
450
|
}
|
|
450
451
|
|
|
451
|
-
function usage() {
|
|
452
|
+
function usage(commandName = 'create-geastack') {
|
|
452
453
|
return `Usage:
|
|
453
|
-
|
|
454
|
+
${commandName} <name>
|
|
455
|
+
|
|
456
|
+
Run without options for guided setup. The CLI asks what you want to build and
|
|
457
|
+
derives the source layout, targets, and runtime configuration from your choice.
|
|
454
458
|
|
|
455
459
|
Options:
|
|
456
|
-
--starter counter|
|
|
460
|
+
--starter counter|blank|example
|
|
457
461
|
--example <example-id>
|
|
462
|
+
--no-install
|
|
463
|
+
|
|
464
|
+
Automation options:
|
|
465
|
+
--dir <path>
|
|
466
|
+
--id <app-id>
|
|
467
|
+
--name <display-name>
|
|
458
468
|
--examples-repo <git-url-or-local-path>
|
|
459
469
|
--examples-ref <git-ref>
|
|
460
470
|
--targets web,esp32,rp2350,geaos,macos,ios,android
|
|
461
471
|
--core-dependency <specifier>
|
|
462
472
|
--cli-dependency <specifier>
|
|
463
|
-
--install
|
|
473
|
+
--install
|
|
464
474
|
--dry-run
|
|
465
475
|
--yes
|
|
466
476
|
--force
|
package/src/gea.mjs
CHANGED
|
@@ -40,7 +40,7 @@ export async function runGea(argv, io = {}) {
|
|
|
40
40
|
if (command === 'create') {
|
|
41
41
|
const createArgs = argv.slice(1)
|
|
42
42
|
if (option(parsed, 'install') === undefined) createArgs.push('--install')
|
|
43
|
-
return runCreateGeastack(createArgs, io)
|
|
43
|
+
return runCreateGeastack(createArgs, { ...io, commandName: 'gea create' })
|
|
44
44
|
}
|
|
45
45
|
if (!command || command === 'help' || flag(parsed, 'help')) {
|
|
46
46
|
stdout(usage())
|