keryx 0.2.2 → 0.3.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/keryx.ts +2 -1
- package/package.json +1 -1
package/keryx.ts
CHANGED
|
@@ -19,13 +19,14 @@ program
|
|
|
19
19
|
.command("new [project-name]")
|
|
20
20
|
.summary("Create a new Keryx project")
|
|
21
21
|
.description("Scaffold a new Keryx application with project boilerplate")
|
|
22
|
+
.option("-y, --yes", "Skip prompts and use defaults")
|
|
22
23
|
.option("--no-interactive", "Skip prompts and use defaults")
|
|
23
24
|
.option("--no-db", "Skip database setup files")
|
|
24
25
|
.option("--no-example", "Skip example action")
|
|
25
26
|
.action(async (projectName: string | undefined, opts) => {
|
|
26
27
|
let options: ScaffoldOptions;
|
|
27
28
|
|
|
28
|
-
if (opts.interactive === false) {
|
|
29
|
+
if (opts.yes || opts.interactive === false) {
|
|
29
30
|
// --no-interactive: use defaults
|
|
30
31
|
projectName = projectName || "my-keryx-app";
|
|
31
32
|
options = {
|