Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
44b20b011c | |||
b1dfe658c4 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartcli",
|
"name": "smartcli",
|
||||||
"version": "0.0.4",
|
"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": {
|
||||||
|
2
test.js
2
test.js
@ -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();
|
||||||
});
|
});
|
||||||
|
@ -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();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user