valent-pipeline 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/bin/cli.js +10 -7
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -17,15 +17,18 @@ program
|
|
|
17
17
|
.version(pkg.version);
|
|
18
18
|
|
|
19
19
|
// init command
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
const initAction = async (options) => {
|
|
21
|
+
const { init } = await import('../src/commands/init.js');
|
|
22
|
+
await init(options);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const initOptions = (cmd) => cmd
|
|
23
26
|
.option('--yes', 'Use defaults for all prompts (non-interactive)')
|
|
24
27
|
.option('--force', 'Overwrite existing pipeline configuration')
|
|
25
|
-
.action(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
.action(initAction);
|
|
29
|
+
|
|
30
|
+
initOptions(program.command('init').description('Initialize a new v3 pipeline in the current project'));
|
|
31
|
+
initOptions(program.command('install').description('Alias for init'));
|
|
29
32
|
|
|
30
33
|
// upgrade command
|
|
31
34
|
program
|