summaryrefslogtreecommitdiff
path: root/mongo-edu.js
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2014-06-16 00:10:43 +0100
committerprzemyslawpluta <przemekpluta@hotmail.com>2014-06-16 00:10:43 +0100
commit1e4b910edd0c55f0332a9797c143dfa077aa31b4 (patch)
treea1d5c08bb3366df35cc730dbdd8d91885b2a57de /mongo-edu.js
parent25e77d7f8603a5d3841f6214c18bb86b914ca30e (diff)
downloadmongo-edu-1e4b910edd0c55f0332a9797c143dfa077aa31b4.zip
update
add ordered course list version bump
Diffstat (limited to 'mongo-edu.js')
-rw-r--r--mongo-edu.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/mongo-edu.js b/mongo-edu.js
index 68ff39d..5afe4f4 100644
--- a/mongo-edu.js
+++ b/mongo-edu.js
@@ -77,7 +77,7 @@ exports.create = function start() {
if (pass) { return showDetails(err, data); }
- list[0].message = 'Found ' + data.length + ' List'+ ((data.length > 1)? 's' : '') + '. Select:';
+ list[0].message = 'Found ' + data.length + ' List' + ((data.length > 1)? 's' : '') + '. Select:';
list[0].choices = data;
return currentVideos();
@@ -87,9 +87,9 @@ exports.create = function start() {
lookFor + ' list is not available.\n\nCheck the start/end date for selected course.\n'); }
}
- return console.log('[' + 'i'.red + '] Unable to locate any ' + lookFor.toLowerCase() + ' lists in the wiki. Is ' +
+ return console.log('[' + 'i'.red + '] Unable to locate any ' + lookFor.toLowerCase() + ' lists in the wiki. Are ' +
lookFor.toLowerCase() + ' list present in the wiki?' +
- (lookFor === 'Videos') ? ' Try to add ' + '--cw'.green + ' to switch and search on courseware instead.' : '');
+ ((lookFor === 'Videos') ? ' Try to add ' + '--cw'.green + ' to switch and search on courseware instead.' : ''));
});
});
@@ -116,7 +116,9 @@ exports.create = function start() {
check[0].choices = data;
return inquirer.prompt(check, function prompt(answers) {
+
videoHandler.download(answers, data, argv);
+
});
}