1 |
|
2 |
|
3 | const path = require('path')
|
4 |
|
5 | module.exports = context => opts => {
|
6 | if (context.flags['no-notify']) return
|
7 | const notifier = require('node-notifier')
|
8 | return notifier.notify({
|
9 | title: `heroku ${process.argv[2]}`,
|
10 | // icon: path.join('Terminal Icon'),
|
11 | icon: path.join(__dirname, '../assets/heroku.png'),
|
12 | // contentImage: path.join(__dirname, '../assets/heroku.png'),
|
13 | // open: // URL to open on Click
|
14 | // wait: false, // Wait for User Action against Notification or times out. Same as timeout = 5 seconds
|
15 |
|
16 | // New in latest version. See `example/macInput.js` for usage
|
17 | // timeout: 5, // Takes precedence over wait if both are defined.
|
18 | // closeLabel: void 0, // String. Label for cancel button
|
19 | // actions: void 0, // String | Array<String>. Action label or list of labels in case of dropdown
|
20 | // dropdownLabel: void 0, // String. Label to be used if multiple actions
|
21 | // reply: false // Boolean. If notification should take input. Value passed as third argument in callback and event emitter.
|
22 | ...opts
|
23 | })
|
24 | }
|