summaryrefslogtreecommitdiff
path: root/lib/initialize.js
diff options
context:
space:
mode:
authorprzemyslawpluta <przemekpluta@hotmail.com>2015-08-07 12:17:40 +0100
committerprzemyslawpluta <przemekpluta@hotmail.com>2015-08-07 12:17:40 +0100
commitfd4a50826c7ca3c33339699084bb0e8e968770e1 (patch)
tree12797824769389129f3a726e97498d79d55f33c4 /lib/initialize.js
parent1b6e618607df3f3774f957cc3fc95fae3778e337 (diff)
downloadmongo-edu-fd4a50826c7ca3c33339699084bb0e8e968770e1.zip
version bump
Diffstat (limited to 'lib/initialize.js')
-rw-r--r--lib/initialize.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/initialize.js b/lib/initialize.js
index 127b0c6..451c734 100644
--- a/lib/initialize.js
+++ b/lib/initialize.js
@@ -21,7 +21,7 @@ function checkName(profile) {
'use strict';
var greetings = 'Hi ';
- return ((profile.firstName !== '') ? greetings + profile.firstName : greetings + profile.userName) + ((!isWin) ? ' ' + emoji.smile : '');
+ return ((profile.firstName !== '') ? greetings + profile.firstName : greetings + profile.userName) + ((!isWin) ? ' ' + emoji.smile + ' ' : '.');
}
module.exports = function run(profile, argv) {
@@ -60,11 +60,11 @@ module.exports = function run(profile, argv) {
function processList(data, profile) {
if (!data.length) {
- if (profile.noCourses) { return console.log('i'.red + ' ' + checkName(profile) + ' ' + profile.noCourses); }
- return console.log('i'.red + ' ' + checkName(profile) + ' ' + 'Could not locate any courses in your profile. Have you registered already?\n');
+ if (profile.noCourses) { return console.log('i'.red + ' ' + checkName(profile) + ' ' + profile.noCourses); }
+ return console.log('i'.red + ' ' + checkName(profile) + ' ' + 'Could not locate any courses in your profile. Have you registered already?\n');
}
- classes[0].message = checkName(profile) + ' . Found ' + data.length + ' Course'+ ((data.length > 1)? 's' : '') + '. Select:';
+ classes[0].message = checkName(profile) + ' Found ' + data.length + ' Course'+ ((data.length > 1)? 's' : '') + '. Select:';
classes[0].choices = data;
currentList();