UNPKG

443 BJavaScriptView Raw
1#!/usr/bin/env node
2
3const { execSync } = require('child_process');
4const inquirer = require('inquirer');
5
6const app = require('./index');
7const log = require('./lib/logger');
8
9log.info('cz-customizable standalone version');
10
11const 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
19app.prompter(inquirer, commit);