Revision 362adf50 kamaki/cli/one_command.py
b/kamaki/cli/one_command.py | ||
---|---|---|
55 | 55 |
return None |
56 | 56 |
|
57 | 57 |
|
58 |
def run(auth_base, parser, _help):
|
|
58 |
def run(remote_base, parser, _help):
|
|
59 | 59 |
group = get_command_group(list(parser.unparsed), parser.arguments) |
60 | 60 |
if not group: |
61 | 61 |
parser.parser.print_help() |
... | ... | |
68 | 68 |
global _best_match |
69 | 69 |
_best_match = [] |
70 | 70 |
|
71 |
group_spec = parser.arguments['config'].get('cli', group)
|
|
71 |
group_spec = parser.arguments['config'].get('global', '%s_cli' % group)
|
|
72 | 72 |
spec_module = _load_spec_module(group_spec, parser.arguments, '_commands') |
73 | 73 |
if spec_module is None: |
74 | 74 |
raise CLIUnknownCommand( |
... | ... | |
96 | 96 |
exit(0) |
97 | 97 |
|
98 | 98 |
cls = cmd.get_class() |
99 |
executable = cls(parser.arguments, auth_base)
|
|
99 |
executable = cls(parser.arguments, remote_base)
|
|
100 | 100 |
parser.update_arguments(executable.arguments) |
101 | 101 |
#parsed, unparsed = parse_known_args(parser, executable.arguments) |
102 | 102 |
for term in _best_match: |
Also available in: Unified diff