diff --git a/packages/sui-mono/bin/sui-mono-commit.js b/packages/sui-mono/bin/sui-mono-commit.js index 983515fc7..e4df0ffda 100644 --- a/packages/sui-mono/bin/sui-mono-commit.js +++ b/packages/sui-mono/bin/sui-mono-commit.js @@ -1,8 +1,24 @@ /* eslint no-console:0 */ const {promisify} = require('util') const exec = promisify(require('child_process').exec) +const {Command} = require('commander') const startMainCommitFlow = require('../src/prompter-manager.js') +const {executeCommit} = startMainCommitFlow + +const program = new Command() +program + .option('--no-interactive', 'Skip interactive prompts, requires --type, --scope, --subject') + .option('-t, --type ', 'Commit type (feat, fix, docs, refactor, perf, test, chore, release)') + .option('-s, --scope ', 'Commit scope (package name or Root)') + .option('-m, --subject ', 'Commit subject (short description)') + .option('-b, --body ', 'Commit body (optional, use | for newlines)') + .option('--breaking ', 'Breaking changes description (optional)') + .option('--footer