-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: standalone version of this lib
ISSUES CLOSED: #89
- Loading branch information
1 parent
eee6212
commit 1134d85
Showing
4 changed files
with
86 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env node | ||
|
||
const { execSync } = require('child_process'); | ||
const inquirer = require('inquirer'); | ||
|
||
const app = require('./index'); | ||
const log = require('./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); |