Statistics
| Branch: | Tag: | Revision:

root / kamaki / cli / utils.py @ 0d4a6d0a

History | View | Annotate | Download (14.7 kB)

# Date Author Comment
14b25e00 04/16/2013 05:26 pm Stavros Sachtouris

Prevent upload if uploads exceed container limit

Feature #3536

6fb4af77 03/04/2013 06:55 pm Stavros Sachtouris

Suggest ansicolors, progress when missing (#3367)

a517ff50 02/26/2013 12:19 pm Stavros Sachtouris

Allow non-ascii paramters on path2url

Replace calls of the form unicode(v) to the equivalent" '%s' % v

b58c1078 02/13/2013 01:14 pm Stavros Sachtouris

Make pithos_rest_api method vars safe from None

Some vars that have not None as default value where vulnerable to None assignments

24ff0a35 02/11/2013 05:19 pm Stavros Sachtouris

Fix pep8 compliance issues everywhere

de73876b 02/08/2013 07:25 pm Stavros Sachtouris

Attempt to pep8-fix some source files

02846a75 02/05/2013 05:33 pm Stavros Sachtouris

Test and debug a generic progress bar for tests

in client

b482315a 02/05/2013 12:27 pm Stavros Sachtouris

Initialize tests for cyclades client, safe spiner

safe spiner is a replacement for progress bar functionality,
in case progress bar does not work

0ba7b031 01/31/2013 08:51 pm Stavros Sachtouris

Recostruct kamaki shell input regular expression

New regex is '\'.*?\'|".*?"|^[\S]*$' and works along with some carefull extra spliting
In total, the following are parsed as terms:
'all kinds of stuff here except single quotes'
"all kinds of stuff here except single or double quotes"...

b4cf92b8 01/25/2013 09:17 pm Stavros Sachtouris

Fully adjust pithos_cli

001200c3 01/22/2013 02:32 pm Stavros Sachtouris

Format data size units, use it in quota commands

quota returns value in units (KiB, MiB, etc)
new argument -b, --bytes to return value in bytes
setquota can accept a unit string
setquota 2.3GB

7147e1ca 01/22/2013 12:42 pm Stavros Sachtouris

store-delete asks for permission

In cli.utils: new method ask_user prompts for permission
In cli.commands.pithos_cli: store_delete/purge ask for permission
they also feature a yes flag argument to avoid prompting

439826ec 01/09/2013 02:27 pm Stavros Sachtouris

Adjust util, docs and store_list to new strategy

New method: cli.utils.page_hold holds console until user input, usefull for listing
results

0e806947 01/08/2013 04:14 pm Stavros Sachtouris

Enrich all network_* output and error handling

ddc0b290 01/08/2013 02:34 pm Stavros Sachtouris

Enrich netowrk_list/info output/error handling

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