We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b93432 commit a8b7546Copy full SHA for a8b7546
1 file changed
lib/index.js
@@ -78,11 +78,19 @@ program
78
.option('-i, --interactive', 'run interactive mode')
79
.option('-S, --silent', "don't show commit command")
80
.option('-t, --typo-check', '[Already deleted this function] check spell')
81
- .option('--gen-config', 'generate config files')
82
.version(version)
83
84
-if (process.argv.includes('--gen-config')) {
+program
+ .command('init')
85
+ .description('generate config files')
86
+ .option('-D, --dry-run', 'run dry-run mode')
87
+ .action(() => {
88
+ /* no-op */
89
+ })
90
+
91
+if (process.argv[2] === 'init') {
92
program.parse(process.argv)
93
94
genConfig(program, templateFileName, definitionsFileName)
95
} else {
96
const projectRoot = getProjectRoot()
0 commit comments