Statistics
| Branch: | Tag: | Revision:

root / kamaki / cli / commands / __init__.py @ e15d78e2

History | View | Annotate | Download (3.2 kB)

# 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...

6069b53b 12/07/2012 04:05 pm Stavros Sachtouris

Trace errors in cli.commands mechanism-not prpgtd

234954d1 11/01/2012 03:20 pm Stavros Sachtouris

pep8 kamaki.cli.commands

5eae854d 10/15/2012 12:00 pm Stavros Sachtouris

Rearange commands class hierarchy

7493ccb6 09/04/2012 06:57 pm Stavros Sachtouris

Correct repackaging, minor server list improvement