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 _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