Browse files

Add audio player option to cli

  • Loading branch information...
1 parent d7e4e0d commit 22049fba6750bbe012cf7f04d4a85ce389c5a3d2 @jamesbloomer committed Mar 25, 2012
Showing with 11 additions and 10 deletions.
  1. +9 −8 bin/tadaa
  2. +2 −2 package.json
View
17 bin/tadaa
@@ -6,22 +6,23 @@ var tadaa = require('../lib/tadaa.js'),
program = require('commander');
program
- .version('0.0.3')
+ .version('0.0.4')
.option('-i, --interval [interval]', 'The interval in ms for which to check the monitoring call', 5000)
.option('-u, --up [up]', 'The sound to play when the monitored value goes up')
.option('-d, --down [down]', 'The sound to play when the monitored value goes down')
- .option('-t --pttoken [pttoken]', 'A Pivotal Tracker API token')
- .option('-p --ptprojectid [ptprojectid]', 'A Pivotal Tracker project id')
- .option('-h --zenhost [zenhost]', 'The Zendesk host')
- .option('-e --zenemail [zenemail]', 'Email for Zendesk')
- .option('-a --zenpassword [zenpassword]', 'Password for Zendesk')
- .option('-v --zenview [zenview ]', 'The Zendesk view to monitor');
+ .option('-a, --audioplayer [audioplayer]', 'The audio player to use to play the sounds', 'aplay')
+ .option('-t, --pttoken [pttoken]', 'A Pivotal Tracker API token')
+ .option('-p, --ptprojectid [ptprojectid]', 'A Pivotal Tracker project id')
+ .option('-h, --zenhost [zenhost]', 'The Zendesk host')
+ .option('-e, --zenemail [zenemail]', 'Email for Zendesk')
+ .option('-s, --zenpassword [zenpassword]', 'Password for Zendesk')
+ .option('-v, --zenview [zenview ]', 'The Zendesk view to monitor');
var options;
var getValue;
var start = function() {
- tadaa.start(program.interval, program.up, program.down, getValue, options);
+ tadaa.start(program.interval, program.up, program.down, getValue, options, program.audioplayer);
};
program
View
4 package.json
@@ -1,7 +1,7 @@
{
"name": "tadaa",
"description": "Monitor stuff via the medium of sound.",
- "version": "0.0.2",
+ "version": "0.0.3",
"licenses": [{
"type": "MIT",
"url": "https://github.com/jamesbloomer/tadaa/raw/master/LICENSE"
@@ -27,5 +27,5 @@
"main": "./lib/tadaa",
"bin": { "tadaa": "./bin/tadaa" },
"scripts": { "test": "vows test/*_test.js --spec" },
- "engines": { "node": ">= 0.6.0" }
+ "engines": { "node": ">= 0.4.0" }
}

0 comments on commit 22049fb

Please sign in to comment.