You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
495 B
19 lines
495 B
#!/usr/bin/env node
|
|
|
|
const { execSync } = require('child_process');
|
|
const inquirer = require('inquirer');
|
|
|
|
const app = require('./node_modules/cz-customizable/index');
|
|
const log = require('./node_modules/cz-customizable/logger');
|
|
|
|
log.info('cz-customizable standalone version');
|
|
|
|
const commit = commitMessage => {
|
|
try {
|
|
execSync(`git commit -m "${commitMessage}"`, { stdio: [0, 1, 2] });
|
|
} catch (error) {
|
|
log.error('>>> ERROR', error.error);
|
|
}
|
|
};
|
|
|
|
app.prompter(inquirer, commit);
|
|
|