History | View | Annotate | Download (12.4 kB)
Remove reference to Config.get/set_global
Add --output-format where applicable
Refs: #4342
It currently exists along with -j/--json for bw compatiblity.--output-format=json is equivalent to -j or --json
Add a timeout argument to cli *_wait methods
Refs: #4352
Modify progress bar behavior in cyclades wait
Progress bar is now able to "count down", be "eating" the bar instead offilling it, thus has meaning for timeoutsAll waits are time-outs, except for "server BUILD"
Fix --more bug in _optional_json commands
Replace print methods w. respective member methods
Refs: #4292
Implement member versions of utils print methods
Add _err to commands, remove pithos print calls
Also, add the methods write, writeln and error to print something to<_commands>._out/_out/_err respectively.
builtin.print is replaced by self.writeln or self.error
Remove pithos.DelimterValue + self._out to list
Update commands to use pager when --more
Refs: #4279
Prepend log_settings to auth_client init
Make pid logging optional, logs are now readable
Refs: #4242
Create _id/name_filter methods for all listings
Refs: #4220
Optimize username aquisition in image list
Refs: #4228
Collect all uuids and get them with one request
Augment user info in image list
Add a --wait option to various server commands
Refs: #3867
Commands affected: server_create/start/shutdown/reboot
Also, the wait functionality is now encapsulated in a _server_wait classThe server_wait command is just an implementation of this class.
Update the copyright dates everywhere
Fix log level for expected command failures
Change term "remote" to "cloud" when proper
Refs: #3934
Adjust all command specs to multicloud/singleauth
Adjust config cli commands to serve remotes
config set remote.smth.option value inserts option=value in remote smthconfig get remote.smth lists the contents (key=val) of remote smthconfig delete remote.smth.option deletes this specific option from the remote smth...
Decide a cloud term, use it if no cloud.url
Get endpoint urls for all CLI operations
Refs: #3874
Use kamaki.clients.astakos.AstakosClient as a cached astakos client to getuser information and, most importantly, endpoints. Allow users to authenticatemultiple tokens on the same session. In every session there must be at most...
Fix typo in kamak.cli.logger import
Implement an optional json output 4 outputing cmds
Refs: #3732
Apply optional output to kamaki file commands
Apply the feature wherever is applicableGeneralize the feature by moving the corresponding code to _command_init
Stop shell from destroying config instance
This caused warnings about preset variables
Globalize logger usage
Unsolved bug: redudant info in logfile
Pametrize log file, make it globaly available
Kamaki logger module is now available to both cli and clients packagesUsers may set the log_file option in configuration file kamaki config set log_file ...
Support #3441
Allow users to set maximum thread limit
This is implemented as a configuration option in cliDevelopers may set it as kamaki.clients.Client.MAX_THREADS = <limit>
Adjust documentation acoordingly
Feature #3546
DISABLE config log options in interactive shell
to avoid kamaki failures due to logging problems
Allow config to switch some options on or off
- LOG_TOKEN: whether to log user token in http requests (default: off)- LOG_DATA: whether to log http body (send or secv - default: off)
config options: log_token=off, log_data=off
Fully adjust cyclades_cli
Tide up error handling code in astakos
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')
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']...
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...
Trace errors in cli.commands mechanism-not prpgtd
pep8 kamaki.cli.commands
Rearange commands class hierarchy
Correct repackaging, minor server list improvement