|
3 | 3 | var wrap = require('word-wrap'); |
4 | 4 |
|
5 | 5 | // This can be any kind of SystemJS compatible module. |
6 | | -// We use Commonjs here, but ES6 or AMD would do just |
| 6 | +// We use Commonjs here, but ES6 or AMD would do just |
7 | 7 | // fine. |
8 | 8 | module.exports = { |
9 | 9 |
|
10 | 10 | // When a user runs `git cz`, prompter will |
11 | 11 | // be executed. We pass you cz, which currently |
12 | 12 | // is just an instance of inquirer.js. Using |
13 | 13 | // this you can ask questions and get answers. |
14 | | - // |
| 14 | + // |
15 | 15 | // The commit callback should be executed when |
16 | 16 | // you're ready to send back a commit template |
17 | | - // to git. |
18 | | - // |
| 17 | + // to git. |
| 18 | + // |
19 | 19 | // By default, we'll de-indent your commit |
20 | 20 | // template and will keep empty lines. |
21 | 21 | prompter: function(cz, commit) { |
22 | | - |
23 | 22 | console.log('\nLine 1 will be cropped at 100 characters. All other lines will be wrapped after 100 characters.\n'); |
24 | | - |
| 23 | + |
25 | 24 | // Let's ask some questions of the user |
26 | | - // so that we can populate our commit |
27 | | - // template. |
| 25 | + // so that we can populate our commit |
| 26 | + // template. |
28 | 27 | // |
29 | 28 | // See inquirer.js docs for specifics. |
30 | 29 | // You can also opt to use another input |
@@ -77,8 +76,8 @@ module.exports = { |
77 | 76 | name: 'footer', |
78 | 77 | message: 'List any breaking changes or issues closed by this change:\n' |
79 | 78 | } |
80 | | - ], function(answers) { |
81 | | - |
| 79 | + ]).then(function(answers) { |
| 80 | + |
82 | 81 | var maxLineWidth = 100; |
83 | 82 |
|
84 | 83 | var wrapOptions = { |
|
0 commit comments