update repl to handle blank lines
diff --git a/client/lib/repl.js b/client/lib/repl.js
index 6df867d..bfbfd54 100644
--- a/client/lib/repl.js
+++ b/client/lib/repl.js
@@ -106,9 +106,14 @@
name: 'command', message: '(wskdb)',
validate: function(line) {
var commandLine = line.split(/\s+/);
- return commandLine.length > 0 && commandHandlers[commandLine[0]] ? true : "Invalid command";
+ return line.length == 0 || commandHandlers[commandLine[0]] ? true : "Invalid command";
}
}]).then(function(response) {
+ if (response.command.length == 0) {
+ // user hit return;
+ return repl(wskprops);
+ }
+
var commandLine = response.command.split(/\s+/);
var command = commandLine.shift();
var handler = commandHandlers[command];