Statistics
| Branch: | Tag: | Revision:

root / kamaki / cli / utils.py @ bd40efdf

History | View | Annotate | Download (9.7 kB)

# Date Author Comment
bd40efdf 01/08/2013 01:11 pm Stavros Sachtouris

print_items can print results in pages, flavorlist

if called with page_size a possitive int, print_items holds every page_size
results and waits for user input to continue.

This is used in flavor_list for the moment, but is going to be a std option
for all *_list commands

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

54d800e8 12/10/2012 08:55 pm Stavros Sachtouris

shell help messages are full

c17b8bc0 12/10/2012 05:55 pm Stavros Sachtouris

cyclades_cli take advntg of updated utils

f8681ec8 12/10/2012 05:18 pm Stavros Sachtouris

Introduce enumrated list/dict print

d4abd11c 12/10/2012 05:01 pm Stavros Sachtouris

Remove brackets from print_list

08c63ef5 12/10/2012 04:40 pm Stavros Sachtouris

Pretty print_list

f91bc6b1 12/10/2012 04:08 pm Stavros Sachtouris

Add info in container-not-found error

2ff0b7bd 12/07/2012 06:28 pm Stavros Sachtouris

Propagate error handling to cli.utils

f23a5cdb 11/23/2012 03:38 pm Stavros Sachtouris

Quick setup guide, remove empty lins in image list

457cb69b 11/23/2012 12:13 pm Stavros Sachtouris

Initialize new documents in docs

aa25346e 11/20/2012 07:03 pm Stavros Sachtouris

Pretify print_items

efbcdc41 11/20/2012 02:13 pm Stavros Sachtouris

Move split_line code to cli.utils

db950b10 11/14/2012 05:26 pm Stavros Sachtouris

Use CLIErrors in shell

f551841a 11/14/2012 05:01 pm Stavros Sachtouris

Improve print_list/dict

6514457a 11/13/2012 05:54 pm Stavros Sachtouris

Adjust interactive shell to new kamaki order

0d249b3e 11/12/2012 07:19 pm Stavros Sachtouris

Allow clis to overide command load implementation

Still buggy and experimental, but if a cli don't use the command
decorator, but implement another way of loading class info to
a _commands list of CommandTrees, kamaki can still use this cli.

This will allow clis to extent CommandTrees in order to provide...

f93854ae 11/05/2012 05:46 pm Stavros Sachtouris

Restore color dummys

3dabe5d2 11/02/2012 01:16 pm Stavros Sachtouris

Make all source pep8 compliant

fd5db045 10/31/2012 07:02 pm Stavros Sachtouris

pep8 part of kamaki (from root to cli)

67cea04c 10/29/2012 04:11 pm Stavros Sachtouris

Set colors off by default

d9325478 10/05/2012 06:03 pm Stavros Sachtouris

Refactor command-tree. Better code, still buggy

aa7f7bff 09/28/2012 05:58 pm Stavros Sachtouris

Complete one-command CLI, but still doesn't work

missing:
1. fix the command_specs with new argument system
2. Maybe take advantage of the arbitary length of command terms for more
expressive syntax/semantics

0b368c8c 09/27/2012 07:47 pm Stavros Sachtouris

Refactor CommandTree, parse and get cli class

017d37ce 09/25/2012 07:14 pm Stavros Sachtouris

Test CommandTree usage and notice it's no good

CommandTree is not as convinient to use as planned, maybe it should
be redesinged

dfee2caf 09/25/2012 05:48 pm Stavros Sachtouris

Fix CLI top level error handling

9bdc89da 09/25/2012 04:50 pm Stavros Sachtouris

Argument object handles part of the functionality

+minor fixes

926d6863 09/21/2012 07:01 pm Stavros Sachtouris

Basic CommandTree debugging and other minor fixes

f997679d 09/21/2012 06:07 pm Stavros Sachtouris

Start a great deal of CLI modifictions

Argument class wraps python ArgumentParser to provide a convinient arg system
CommandTree class manages (store, load, seek, etc) a tree of command paths
and loads them from command spec files.

Under heavy development...

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

Correct repackaging, minor server list improvement