1 |
|
2 |
|
3 | const inquirer = require('inquirer')
|
4 | const simple = require('..')
|
5 | const confirm = require('inquirer-confirm')
|
6 | const hr = require('hr')
|
7 | const ggit = require('ggit')
|
8 |
|
9 | simple.prompter(inquirer, function (text) {
|
10 | console.log('formed the following commit message')
|
11 | hr.hr('=')
|
12 | console.log(text)
|
13 | hr.hr('-')
|
14 |
|
15 | confirm('Do you want to commit?')
|
16 | .then(ggit.commit.bind(null, text))
|
17 | .done()
|
18 | })
|