Revision b91111b9
b/kamaki/cli/commands/astakos.py | ||
---|---|---|
32 | 32 |
# or implied, of GRNET S.A.command |
33 | 33 |
|
34 | 34 |
from kamaki.cli import command |
35 |
from kamaki.cli.argument import ValueArgument |
|
35 | 36 |
from kamaki.clients.astakos import AstakosClient |
36 | 37 |
from kamaki.cli.commands import ( |
37 | 38 |
_command_init, errors, _optional_json, addLogSettings) |
... | ... | |
110 | 111 |
def main(self): |
111 | 112 |
super(self.__class__, self)._run() |
112 | 113 |
self._run() |
114 |
|
|
115 |
|
|
116 |
@command(user_cmds) |
|
117 |
class user_info(_user_init, _optional_json): |
|
118 |
"""Get info for current or selected user""" |
|
119 |
|
|
120 |
arguments = dict( |
|
121 |
token=ValueArgument('Use this instead of current token', ('--token')) |
|
122 |
) |
|
123 |
|
|
124 |
@errors.generic.all |
|
125 |
def _run(self): |
|
126 |
self._print(self.client.user_info(self['token']), print_dict) |
|
127 |
|
|
128 |
def main(self): |
|
129 |
super(self.__class__, self)._run() |
|
130 |
self._run() |
Also available in: Unified diff