Revision b6a99832 kamaki/cli/commands/history_cli.py
b/kamaki/cli/commands/history_cli.py | ||
---|---|---|
39 | 39 |
from kamaki.cli.history import History |
40 | 40 |
from kamaki.cli import command |
41 | 41 |
from kamaki.cli.commands import _command_init |
42 |
from kamaki.cli import _exec_cmd, _print_error_message
|
|
42 |
from kamaki.cli import exec_cmd, print_error_message
|
|
43 | 43 |
from kamaki.cli.errors import CLIError, CLISyntaxError, raiseCLIError |
44 | 44 |
from kamaki.cli.utils import split_input |
45 | 45 |
from kamaki.clients import ClientError |
... | ... | |
145 | 145 |
prs.syntax = '%s %s' % (cmd.path.replace('_', ' '), |
146 | 146 |
cmd.get_class().syntax) |
147 | 147 |
prs.parse(args) |
148 |
_exec_cmd(instance, prs.unparsed, prs.parser.print_help)
|
|
148 |
exec_cmd(instance, prs.unparsed, prs.parser.print_help) |
|
149 | 149 |
except (CLIError, ClientError) as err: |
150 |
_print_error_message(err)
|
|
150 |
print_error_message(err) |
|
151 | 151 |
except Exception as e: |
152 | 152 |
print('Execution of [ %s ] failed' % line) |
153 | 153 |
print('\t%s' % e) |
Also available in: Unified diff