Force shell to do nothing in empty lines
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Fri, 23 Aug 2013 07:39:50 +0000 (10:39 +0300)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Fri, 23 Aug 2013 07:39:50 +0000 (10:39 +0300)
kamaki/cli/command_shell.py

index 34ad1f8..a27c118 100644 (file)
@@ -73,6 +73,9 @@ class Shell(Cmd):
 
     undoc_header = 'interactive shell commands:'
 
+    def emptyline(self):
+        self.lastcmd = ''
+
     def postcmd(self, post, line):
         if self._context_stack:
             self._roll_command()