Statistics
| Branch: | Tag: | Revision:

root / kamaki / cli / commands @ e15d78e2

Name Size
__init__.py 3.2 kB
astakos_cli.py 3.2 kB
config_cli.py 3.3 kB
cyclades_cli.py 19.3 kB
history_cli.py 7.1 kB
image_cli.py 11.5 kB
pithos_cli.py 47.7 kB
test_cli.py 5.9 kB

Latest revisions

# Date Author Comment
e15d78e2 12/22/2012 08:14 pm Stavros Sachtouris

Apply new argument strategy on server list

Suggested use:
- declare:
(self.)arguments = dict(argname=Argument())
- set/update:
self['argname'] = Argument(...)
- use:
self['argname']
- get arg object:
self.get_argument_object('argname')

b113e74b 12/22/2012 08:01 pm Stavros Sachtouris

Modify getitem semantics

Not getitem of cli.commands does return arg.value
- to set:
mycmd['argname'] = Argument(…)
or
mycmd.argument['argname'] = Argument(…)
- to get Argument object:
mycmd.get_argument_object('argname')
or
mycmd.argument['argname']...

5a37a189 12/22/2012 07:38 pm Stavros Sachtouris

Make arguments an internal feature of cli.commands

Now any cli.commands subclass instance:
- sets args like this:
mycmd['myargname'] = Argument()
instead of
mycmd.arguments['myargname']
- gets args like this:
mycmd['myargname'] = Argument()
instead of...

c5bcc3e3 12/20/2012 05:52 pm Stavros Sachtouris

Improve help for history run

0663d8d6 12/20/2012 05:20 pm Stavros Sachtouris

Nice instructions for astakos_cli

2703cceb 12/20/2012 05:06 pm Stavros Sachtouris

Formated output in long command description

93542587 12/20/2012 02:24 pm Stavros Sachtouris

Correct publish output, more details in storelist

a494a741 12/20/2012 01:14 pm Stavros Sachtouris

Improve print_items, use it in flavor_list

flavor_list now prints id name instead of order. name

c8e17a67 12/19/2012 06:06 pm Stavros Sachtouris

Deal with with argparse stupid error handling

argparse people must be sadists or they just hate other programers

2d7ce81e 12/19/2012 04:33 pm Stavros Sachtouris

Extent store_list to use path as prefix

kamaki store list mycontainer:phot

will list all objects in mycontainer prefixed with phot

View revisions

Also available in: Atom