Revision 75c3fc42 kamaki/cli/command_shell.py
b/kamaki/cli/command_shell.py | ||
---|---|---|
43 | 43 |
from kamaki.cli.errors import CLIError |
44 | 44 |
|
45 | 45 |
|
46 |
def _fix_arguments(): |
|
47 |
_arguments.pop('version', None) |
|
48 |
_arguments.pop('options', None) |
|
49 |
_arguments.pop('history', None) |
|
46 |
def _init_shell(exe_string, arguments): |
|
47 |
arguments.pop('version', None) |
|
48 |
arguments.pop('options', None) |
|
49 |
arguments.pop('history', None) |
|
50 |
shell = Shell() |
|
51 |
shell.set_prompt(exe_string) |
|
52 |
from kamaki import __version__ as version |
|
53 |
shell.greet(version) |
|
54 |
shell.do_EOF = shell.do_exit |
|
55 |
from kamaki.cli.command_tree import CommandTree |
|
56 |
shell.cmd_tree = CommandTree( |
|
57 |
'kamaki', 'A command line tool for poking clouds') |
|
58 |
return shell |
|
50 | 59 |
|
51 | 60 |
|
52 | 61 |
class Shell(Cmd): |
Also available in: Unified diff