tictac icon indicating copy to clipboard operation
tictac copied to clipboard

Create other methods to notify end task

Open vitorbritto opened this issue 10 years ago • 1 comments

  • 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
}

vitorbritto avatar Jun 15 '14 16:06 vitorbritto

Growl notification: https://github.com/vitorbritto/tictac/pull/5

raphaelivan avatar Jul 03 '14 22:07 raphaelivan