Revision c3e41146 kamaki/cli/command_shell.py
b/kamaki/cli/command_shell.py | ||
---|---|---|
33 | 33 |
|
34 | 34 |
from cmd import Cmd |
35 | 35 |
from os import popen |
36 |
from sys import stdout, stderr
|
|
36 |
from sys import stdout |
|
37 | 37 |
|
38 | 38 |
from kamaki.cli import exec_cmd, print_error_message, print_subcommands_help |
39 | 39 |
from kamaki.cli.argument import ArgumentParseManager |
40 |
from kamaki.cli.utils import print_dict, split_input |
|
40 |
from kamaki.cli.utils import print_dict, split_input, pref_enc
|
|
41 | 41 |
from kamaki.cli.history import History |
42 | 42 |
from kamaki.cli.errors import CLIError |
43 | 43 |
from kamaki.clients import ClientError |
... | ... | |
190 | 190 |
<cmd> <term> <term> <args> is always parsed to most specific |
191 | 191 |
even if cmd_term_term is not a terminal path |
192 | 192 |
""" |
193 |
line = line.decode(pref_enc) |
|
193 | 194 |
subcmd, cmd_args = cmd.parse_out(split_input(line)) |
194 | 195 |
self._history.add(' '.join([cmd.path.replace('_', ' '), line])) |
195 | 196 |
cmd_parser = ArgumentParseManager( |
Also available in: Unified diff