From 3f9dd1f5c5c563ddaf0ea18614667edaa7e1feaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Thu, 11 Oct 2012 15:30:31 -0300 Subject: Working version of completer module --- pywhoisd_dataloader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pywhoisd_dataloader.py') diff --git a/pywhoisd_dataloader.py b/pywhoisd_dataloader.py index 7b80ef5..e67c853 100755 --- a/pywhoisd_dataloader.py +++ b/pywhoisd_dataloader.py @@ -10,7 +10,7 @@ from lib.exceptions import CmdNotFoundException, CommandException class Manager: def __init__(self): self.loader = None - self.completer = CompletionManager() + self.completer = CompletionManager(cmd_manager, self.loader) def start(self): try: @@ -34,7 +34,7 @@ class Manager: output_manager.normal('Usage: {0}'.format(cmd.usage(line[0]))).line_break() except CmdNotFoundException as err: - output_manager.error('Error: {0}'.format(str(err))).linebreak() + output_manager.error('Error: {0}'.format(str(err))).line_break() except EOFError: output_manager.line_break() @@ -44,8 +44,8 @@ class Manager: if __name__ == '__main__': try: - manager = Manager() cmd_manager = CommandManager() + manager = Manager() output_manager = OutputManager() manager.start() -- cgit v1.2.3