1 |
|
2 |
|
3 | const { execSync } = require('child_process');
|
4 | const inquirer = require('inquirer');
|
5 |
|
6 | const app = require('./index');
|
7 | const log = require('./logger');
|
8 |
|
9 | log.info('cz-customizable standalone version');
|
10 |
|
11 | const commit = commitMessage => {
|
12 | try {
|
13 | execSync(`git commit -m "${commitMessage}"`, { stdio: [0, 1, 2] });
|
14 | } catch (error) {
|
15 | log.error('>>> ERROR', error.error);
|
16 | }
|
17 | };
|
18 |
|
19 | app.prompter(inquirer, commit);
|