Statistics
| Branch: | Tag: | Revision:

root / kamaki / cli / commands @ e15d78e2

# 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

c1558584 12/19/2012 04:14 pm Stavros Sachtouris

Full pretty errors in container-path storage check

66f1ff99 12/19/2012 02:22 pm Stavros Sachtouris

Test pretty error details with container-not-found

b6a99832 12/18/2012 05:44 pm Stavros Sachtouris

Restructure interface code

68ab0942 12/18/2012 12:56 pm Stavros Sachtouris

Update history docs

519d8639 12/18/2012 12:32 pm Stavros Sachtouris

Debug history run

451a7992 12/17/2012 07:33 pm Stavros Sachtouris

Allow general options to run a@ initial kamaki

kamaki -v runs a kamaki shell with verbose on!

e876ac62 12/14/2012 06:04 pm Stavros Sachtouris

Forgotten Typos

00ef4ab6 12/14/2012 12:31 pm Stavros Sachtouris

History show and load with more features

show without args: show all
show/load can accept: * list of integers * negative numbers, meaning we count from the end of history list * number ranges (e.g. 2-7, -20-9, -29--9) * 0 means "start of the list", (e.g. 0-2 prints the first 2,...

660a0dad 12/12/2012 07:26 pm Stavros Sachtouris

history show specific command id or range

ee9f8245 12/12/2012 05:32 pm Stavros Sachtouris

Document History changes

f2e2663e 12/12/2012 04:30 pm Stavros Sachtouris

Rename history.recall to load, allow multiple ids

load 1 3 5-7 8 ...
also can repeat commands:
load 1 4 1 3-5 (repeats 1 and 4)

fce93ff6 12/12/2012 01:56 pm Stavros Sachtouris

History in shell can execute commands ('recall')

33b3595a 12/11/2012 07:29 pm Stavros Sachtouris

Plant a _cmd_tree idea in cli.history_recall

If an interface needs a recall, it should provide a full cmd_tree

304c90b5 12/11/2012 07:14 pm Stavros Sachtouris

Check clients.retrieve works

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

e7b43695 12/10/2012 04:45 pm Stavros Sachtouris

Ommit print_list from cli.commands plugins

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

b9b7bd83 12/10/2012 03:31 pm Stavros Sachtouris

Create dict/list prints test

447c9568 12/10/2012 03:21 pm Stavros Sachtouris

Nicer container:path syntax errors in pithos cli

85d1cf46 12/10/2012 02:04 pm Stavros Sachtouris

Fix pithos_cli.hashmap typo

5260a313 12/07/2012 07:24 pm Stavros Sachtouris

Pithos+ publish returns access url

43ee6ae1 12/07/2012 06:17 pm Stavros Sachtouris

Propagate new error handling to cli.commands

New error handling is done only with cli.errors raiseCLIError methos

3667e969 12/07/2012 05:43 pm Stavros Sachtouris

Kamakitest error msgs, error-handling bugfixes

83ba5545 12/07/2012 05:06 pm Stavros Sachtouris

Propagate error mechanism in pithos_cli

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

Trace errors in cli.commands mechanism-not prpgtd

a10f5561 12/05/2012 12:08 pm Stavros Sachtouris

Progress bar apears asap

08a05270 12/04/2012 05:09 pm Stavros Sachtouris

Update/improve client unittests

1. increase test_set_firewall_profile tollerance
2. all options from config files
3. let tests read options from custom config files

bc223d91 11/30/2012 06:24 pm Stavros Sachtouris

Update comment docs at pithos client

befed235 11/29/2012 06:36 pm Stavros Sachtouris

Update pithos_cli comments for better autodocs

03d661d8 11/29/2012 06:11 pm Stavros Sachtouris

Replace pithos_cli.MetaArguement with KeyValueArg

e5d1d5c2 11/27/2012 05:27 pm Stavros Sachtouris

Complete the kamaki interactive shell usage guide

Not spell-checked yet

57d622b6 11/27/2012 02:29 pm Stavros Sachtouris

Restore server-create --personality syntax etc.

the server-create command can, again, use the old syntax for --personality
parameter. What's more, multiple personalities can be appended on the
same call:

kamaki server create 'server name' <flavor id> <image id>...

7de017e5 11/27/2012 02:03 pm Stavros Sachtouris

Restore old personality syntax

Syntax is now the following:

kamaki create server 'Server name' <flavor id> <image id> [... params ...]
--personality=local_path[,server_path[,owner[,group[,mode]]]]

48cae069 11/23/2012 03:46 pm Stavros Sachtouris

Fix image_cli properties bug

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

Quick setup guide, remove empty lins in image list

e0f40c94 11/23/2012 12:39 pm Stavros Sachtouris

Fix quoted-input bug in one-cmd

7845bf51 11/22/2012 03:21 pm Stavros Sachtouris

Fix local-path ref, undo register_cli syntax modif

WAS: register <name> <location>
THEN: register <location> [name]
NOW: register <name> <location>

but can run with --update to update an existing image instead of
replacing it

939ef0f6 11/21/2012 02:35 pm Stavros Sachtouris

Remove forgoten test from image_cli

24518694 11/20/2012 06:25 pm Stavros Sachtouris

Print id before other info in network_list

2809ad78 11/20/2012 06:17 pm Stavros Sachtouris

Add --update functionality to image register ui

bcebdfef 11/20/2012 06:07 pm Stavros Sachtouris

New image method: reregister(location[, ...])

e9a92550 11/19/2012 04:42 pm Stavros Sachtouris

Fix config-forget bug

852a22e7 11/19/2012 02:01 pm Stavros Sachtouris

Upgrade progress compatibility to 1.0.2

New progress uses a different interface with start and finish methods
that they are now used

8eb8c540 11/16/2012 06:59 pm Stavros Sachtouris

Reload config after config modifications in shell

cccff590 11/16/2012 06:17 pm Stavros Sachtouris

Thread limit can be set by user

c2be5c96 11/16/2012 02:14 pm Stavros Sachtouris

Fix forgotten import

d53062bd 11/15/2012 02:27 pm Stavros Sachtouris

Modify history commands

75c3fc42 11/15/2012 01:50 pm Stavros Sachtouris

Fix new deep-level bug in shell

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

d486baec 11/14/2012 01:38 pm Stavros Sachtouris

Complete UI/cli interface refactoring, minor bugs

be99b6ad 11/13/2012 07:02 pm Stavros Sachtouris

Various configurations (not finished yet)

12ecdeb7 11/13/2012 02:52 pm Stavros Sachtouris

Complete new structure in one command (exprmtal)

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

78496d42 11/09/2012 06:01 pm Stavros Sachtouris

Pre-call parisng and errors, new cmd-spec system

Test firsth in one-command enviroment
cmd-spec system has been initialized, but not finished

af6de846 11/09/2012 03:45 pm Stavros Sachtouris

Start refactoring main CLI

Aims:
- cleaner cli load-point code
- move more argument logic to argument module
- move command loading to the seperate service cli modules:
each command spec module will provide a mechanism for loading
command interfaces (all of them or specific cmds)

062b1d0a 11/09/2012 01:44 pm Stavros Sachtouris

Extract json-encoded error info in clients

6cdfdcf3 11/09/2012 01:11 pm Stavros Sachtouris

Minor improvements to server_wait behavior

85e3803d 11/08/2012 07:23 pm Stavros Sachtouris

Update Pithos+ support documentation

d07b3796 11/08/2012 05:29 pm Stavros Sachtouris

Fix bug with deep-pathed commands

FEATURE: subcommands of a callable command are not allowed. e.g.:

if the following exist as callable commands:
cmd1_cmd2
cmd1_cmd2_cmd3

then cmd1_cmd2 is resolved, but cmd1_cmd2_cmd3 is not

UNFIXED: There is still a case of syntax-error or --help call where the best...

c59aef27 11/08/2012 03:20 pm Stavros Sachtouris

Fix minor wait_server bug, discover a cli bug

CLI bug: deep-level commands malfunction

fd1f1d96 11/08/2012 02:48 pm Stavros Sachtouris

NEW server method: wait_server + cli command

wait for server to reach state (e.g. while building)

0a0b9fb6 11/07/2012 04:26 pm Stavros Sachtouris

Modify KeyValueArgument and CmdConfigArgument

KeyValueArgument now accepts only one key=value pair but can be
repeated:
--property key1=val1 --property key2=val2

CmdCondigArguemtn sets global prefix by default
-o account=
is now equivalent to...

0238c167 11/06/2012 07:08 pm Stavros Sachtouris

Propagate error handling corrections up to CLIs

6ac7f90f 11/05/2012 04:53 pm Stavros Sachtouris

Add object-version arg to store info

f27ed9a0 11/05/2012 03:55 pm Stavros Sachtouris

Sync progressbar to threads, adjust ctrl-c handler

In pithos download/upload ctrl-c is caught when multithreading,
and wait for active threads to finish before exiting

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

Make all source pep8 compliant

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

pep8 kamaki.cli.commands

9ceec15a 10/31/2012 04:19 pm Stavros Sachtouris

Intriduce store cat to cli

cat prints a remote file to console
this used to be achieved by calling download with only one
parameter, which is not supported anymore

df959ba0 10/30/2012 06:51 pm Stavros Sachtouris

Remove too much progressbar warnings

b5d069f0 10/30/2012 06:48 pm Stavros Sachtouris

Move progressbar check to ProgressBarArgument

9791305f 10/30/2012 06:42 pm Stavros Sachtouris

Catch progressbar missing in download

41226a68 10/30/2012 06:39 pm Stavros Sachtouris

Dont create ProgressBar if progress not installed

5bfe1cda 10/30/2012 06:36 pm Stavros Sachtouris

Commit uncommited pithos_cli changes

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

Set colors off by default

455b362d 10/29/2012 03:52 pm Stavros Sachtouris

Change syntax for KeyValue properties

old syntax: --property "key1=val1 key2=val2 ..."
new syntax: --property key1=val1,key2-val2,...

a34888b4 10/29/2012 01:31 pm Stavros Sachtouris

list/disconnect nics by network at clients lib

436f2ce1 10/26/2012 05:03 pm Stavros Sachtouris

Gracefull filenotfound error in store upload

03fd7ddb 10/26/2012 04:03 pm Stavros Sachtouris

Remove relative imports from commands specs

0b9269d8 10/23/2012 03:20 pm Stavros Sachtouris

Try pithos without relative imports

ef5f9c89 10/16/2012 05:07 pm Stavros Sachtouris

Tide up a little

ce48608f 10/16/2012 04:22 pm Stavros Sachtouris

Kamaki now has interactive shell + minor fixes

33e3437a 10/15/2012 12:44 pm Stavros Sachtouris

Quota Holder init (no functionality)

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

Rearange commands class hierarchy

486e55f4 10/11/2012 06:12 pm Stavros Sachtouris

Minor fixes

73e0914d 10/11/2012 05:18 pm Stavros Sachtouris

Initial shell functionality with 1st lvl cmds