def __init__(self, parent_app, command_manager, stdin, stdout): InteractiveApp.__init__( self, parent_app=parent_app, command_manager=command_manager, stdin=stdin, stdout=stdout )
def make_interactive_app(self, errexit, *command_names): fake_command_manager = [(x, None) for x in command_names] return InteractiveApp(FakeApp, fake_command_manager, stdin=None, stdout=None, errexit=errexit)
def completenames(self, text, *ignored): return InteractiveApp.completenames(self, text) + [n for n in self.command_manager.commands.keys() if n.startswith(text)]
def _interactive_factory(self, *args, **kwargs): # create a interactiveapp but adjust it from cliff.interactive import InteractiveApp rv = InteractiveApp(*args, **kwargs) rv.prompt = utils.get_prompt(self.pwd) return rv