Beispiel #1
0
 def interact(self):
     # Defer importing .interactive as cmd2 is a slow import
     from interactive import SmgrInteractiveApp
     self.interpreter = SmgrInteractiveApp(
         parent_app=self,
         command_manager=self.command_manager,
         stdout=self.stdout,
         stdin=self.stdin)
     self.interpreter.cmdloop()
     return 0