Compare commits

...

3 Commits

Author SHA1 Message Date
44b20b011c 0.0.5 2015-10-06 00:45:59 +02:00
b1dfe658c4 modified test 2015-10-06 00:45:52 +02:00
28b9666133 0.0.4 2015-10-06 00:15:30 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "smartcli", "name": "smartcli",
"version": "0.0.3", "version": "0.0.5",
"description": "nodejs wrapper for CLI related tasks", "description": "nodejs wrapper for CLI related tasks",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -7,7 +7,7 @@ var getAnswerTest = function () {
}); });
}; };
var getChoiceTest = function () { var getChoiceTest = function () {
smartcli.getChoice('What to you like best?', ['Cars', 'Planes', 'Boats'], function (answer) { smartcli.getChoice('What music do you like to hear?', ['Jazz', 'Blues', 'Classical'], function (answer) {
console.log('The answer is: ' + answer); console.log('The answer is: ' + answer);
getCwdTest(); getCwdTest();
}); });

View File

@ -9,7 +9,7 @@ var getAnswerTest = function() {
}; };
var getChoiceTest = function() { var getChoiceTest = function() {
smartcli.getChoice('What to you like best?',['Cars','Planes','Boats'],function(answer){ smartcli.getChoice('What music do you like to hear?',['Jazz','Blues','Classical'],function(answer){
console.log('The answer is: ' + answer); console.log('The answer is: ' + answer);
getCwdTest(); getCwdTest();
}); });