tictac
tictac copied to clipboard
Create other methods to notify end task
- Beep in terminal (already done)
- Send email (nodemailer module)
- Show growl notification (growl module)
tictac
.option('-b, --beep', 'beep when task finish')
.option('-e, --email', 'send email when task finish')
.option('-g, --growl', 'show growl notification when task finish')
// Notify method
if (cmd.beep) {
play.sound(done);
}
if (cmd.growl) {
play.sound(done);
// use growl module
}
if (cmd.email) {
play.sound(done);
// use nodemailer module
}
Growl notification: https://github.com/vitorbritto/tictac/pull/5