Statistics
| Branch: | Tag: | Revision:

root / kamaki / cli @ 57ecec97

Name Size
  commands
__init__.py 12.4 kB
argument.py 14 kB
command_shell.py 10.9 kB
command_tree.py 7.5 kB
config.py 4.8 kB
errors.py 4.7 kB
history.py 2.9 kB
one_command.py 3.5 kB
utils.py 9.1 kB

Latest revisions

# Date Author Comment
57ecec97 01/03/2013 12:38 pm Stavros Sachtouris

Include defaults by default in config list

2fe2672e 12/23/2012 06:18 pm Stavros Sachtouris

Adjust pithos_cli

47ae7577 12/23/2012 03:36 am Stavros Sachtouris

Adjust store_list

1ae79e60 12/22/2012 09:25 pm Stavros Sachtouris

Adjust image_cli

746bd77f 12/22/2012 08:52 pm Stavros Sachtouris

Adjust history_cli

93914390 12/22/2012 08:46 pm Stavros Sachtouris

Adjust cyclades_cli to new Arguments handling

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

View revisions

Also available in: Atom