cloudstack-cloudmonkey.git
4 days agoconfig: Fixes #35 fix panic due to inappropriate config loading master
Rohit Yadav [Fri, 7 Dec 2018 21:50:38 +0000 (03:20 +0530)] 
config: Fixes #35 fix panic due to inappropriate config loading

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
6 days agoREADME: fix golang version
Rohit Yadav [Wed, 5 Dec 2018 11:09:10 +0000 (16:39 +0530)] 
README: fix golang version

Signed-off-by: Rohit Yadav <rohit@apache.org>
8 days agonetwork: remove nested quotes in parameters
Rohit Yadav [Mon, 3 Dec 2018 11:51:07 +0000 (17:21 +0530)] 
network: remove nested quotes in parameters

Signed-off-by: Rohit Yadav <rohit@apache.org>
10 days agocli: use cyan as selected colour, don't bolden the input
Rohit Yadav [Sat, 1 Dec 2018 18:16:04 +0000 (23:46 +0530)] 
cli: use cyan as selected colour, don't bolden the input

Signed-off-by: Rohit Yadav <rohit@apache.org>
10 days agovendor: update vendoring dependencies
Rohit Yadav [Sat, 1 Dec 2018 17:51:59 +0000 (23:21 +0530)] 
vendor: update vendoring dependencies

Signed-off-by: Rohit Yadav <rohit@apache.org>
11 days agonetwork: fix segfault 6.0.0-testing-beta2
Rohit Yadav [Fri, 30 Nov 2018 19:35:57 +0000 (01:05 +0530)] 
network: fix segfault

Fixes segfault issue when response is invalid (nil).

Signed-off-by: Rohit Yadav <rohit@apache.org>
11 days agocmk: add git sha and build timestamp from makefile
Rohit Yadav [Fri, 30 Nov 2018 19:18:29 +0000 (00:48 +0530)] 
cmk: add git sha and build timestamp from makefile

With this change `cmk -v` will output git sha and build timestamp.

Signed-off-by: Rohit Yadav <rohit@apache.org>
11 days agoconfig: bump internal version to 6.0.0-beta2
Rohit Yadav [Fri, 30 Nov 2018 18:58:42 +0000 (00:28 +0530)] 
config: bump internal version to 6.0.0-beta2

Signed-off-by: Rohit Yadav <rohit@apache.org>
11 days agocli: only show autocompletion options when tab is pressed
Rohit Yadav [Fri, 30 Nov 2018 18:53:49 +0000 (00:23 +0530)] 
cli: only show autocompletion options when tab is pressed

This adds constraint that the autocompletion options are only shown
when tab is pressed.

Fixes #31.

Signed-off-by: Rohit Yadav <rohit@apache.org>
11 days agocli: allow parameter completion to be disables
Rohit Yadav [Fri, 30 Nov 2018 18:21:54 +0000 (23:51 +0530)] 
cli: allow parameter completion to be disables

This adds the `paramcompletion` setting from python based cloudmonkey
to allow disabling of go-prompt based parameter completion logic.
This also ensure that when cursor is moved back completion won't be
shown to minimize distraction.

Fixes #32

Signed-off-by: Rohit Yadav <rohit@apache.org>
11 days agoconfig: add debuggability using -d flag
Rohit Yadav [Fri, 30 Nov 2018 18:20:34 +0000 (23:50 +0530)] 
config: add debuggability using -d flag

Signed-off-by: Rohit Yadav <rohit@apache.org>
12 days agoconfig: create home configdir if not exist (#30)
Pierre-Luc Dion [Fri, 30 Nov 2018 02:37:29 +0000 (21:37 -0500)] 
config: create home configdir if not exist (#30)

Fixes #29

6 weeks agocli: implement heuristics based completer as a fallback
Rohit Yadav [Thu, 25 Oct 2018 06:09:37 +0000 (11:39 +0530)] 
cli: implement heuristics based completer as a fallback

This implements a API heuristics based options API arg completer based
on the related API name for an arg, or if a list API exists whose name
contains the arg name.

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agocmk: implement file lock for config read/write
Rohit Yadav [Sun, 21 Oct 2018 19:15:58 +0000 (00:45 +0530)] 
cmk: implement file lock for config read/write

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agocmk: implement command line flags support and usage doc
Rohit Yadav [Sun, 21 Oct 2018 19:15:20 +0000 (00:45 +0530)] 
cmk: implement command line flags support and usage doc

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agocli: implement command line history support
Rohit Yadav [Sun, 21 Oct 2018 19:14:46 +0000 (00:44 +0530)] 
cli: implement command line history support

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agocli: fix pipe based output in shell
Rohit Yadav [Sun, 21 Oct 2018 19:14:14 +0000 (00:44 +0530)] 
cli: fix pipe based output in shell

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agocmk: shlex input, new columnar output, refactorings
Rohit Yadav [Sun, 21 Oct 2018 19:13:11 +0000 (00:43 +0530)] 
cmk: shlex input, new columnar output, refactorings

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agotravis: fix build go mod vendor
Rohit Yadav [Sun, 21 Oct 2018 02:26:34 +0000 (07:56 +0530)] 
travis: fix build go mod vendor

This updates by adding changes in vendor from `go mod vendor` and
explicitly enables Go 1.11.1 modules.

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agocmk: rewrite CLI using go-prompt
Rohit Yadav [Sat, 20 Oct 2018 23:44:26 +0000 (05:14 +0530)] 
cmk: rewrite CLI using go-prompt

- Remove readline/prompt-ui based implementation
- Simplify autocompletion logic
- Migrate to go mod
- Update all dependencies

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agoMakefile: use -mod=vendor to build using vendor
Rohit Yadav [Sat, 20 Oct 2018 18:50:35 +0000 (00:20 +0530)] 
Makefile: use -mod=vendor to build using vendor

7 weeks agocmk: disable search bar by default on tab-tab completion
Rohit Yadav [Sat, 20 Oct 2018 04:25:05 +0000 (09:55 +0530)] 
cmk: disable search bar by default on tab-tab completion

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agovendor: update dependencies
Rohit Yadav [Sat, 20 Oct 2018 04:19:27 +0000 (09:49 +0530)] 
vendor: update dependencies

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 weeks agocmk: switch to go mod
Rohit Yadav [Fri, 19 Oct 2018 18:02:30 +0000 (23:32 +0530)] 
cmk: switch to go mod

Signed-off-by: Rohit Yadav <rohit@apache.org>
2 months agonetwork: fix variable name to fix lint error
Rohit Yadav [Tue, 18 Sep 2018 11:21:26 +0000 (16:51 +0530)] 
network: fix variable name to fix lint error

Signed-off-by: Rohit Yadav <rohit@apache.org>
3 months agonetwork: handle login session management and expiry
Rohit Yadav [Tue, 21 Aug 2018 19:42:15 +0000 (01:12 +0530)] 
network: handle login session management and expiry

Signed-off-by: Rohit Yadav <rohit@apache.org>
3 months agonetwork: Fixes #24 split args to API in two parts
Rohit Yadav [Thu, 16 Aug 2018 08:23:05 +0000 (13:53 +0530)] 
network: Fixes #24 split args to API in two parts

This fixes issue of passing args which has `=` like:
update configuration name=ldap.basedn value="ou=People,dc=ldap,dc=corp,dc=company,dc=com"

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agooutput: fix lint issue to fix build failures
Rohit Yadav [Mon, 2 Jul 2018 07:56:30 +0000 (13:26 +0530)] 
output: fix lint issue to fix build failures

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agooutput: implement and refactor json, csv, table, text outputs
Rohit Yadav [Tue, 26 Jun 2018 11:11:26 +0000 (16:41 +0530)] 
output: implement and refactor json, csv, table, text outputs

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agocmk: rename references to `cmk` and update README
Rohit Yadav [Tue, 26 Jun 2018 09:08:46 +0000 (14:38 +0530)] 
cmk: rename references to `cmk` and update README

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agoconfig: fix lint issue and travis failures
Rohit Yadav [Tue, 26 Jun 2018 08:56:02 +0000 (14:26 +0530)] 
config: fix lint issue and travis failures

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agonetwork: expire cookie jar based on initial log-in cookies
Rohit Yadav [Mon, 25 Jun 2018 18:47:16 +0000 (00:17 +0530)] 
network: expire cookie jar based on initial log-in cookies

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agoconfig: several refactorings and interactive fixes
Rohit Yadav [Mon, 25 Jun 2018 18:10:29 +0000 (23:40 +0530)] 
config: several refactorings and interactive fixes

This also enables log in attempt and reuse of http client once a user
successfully logs in. This speeds up the CLI experience when username
and password credentials are used instead of api/secret keys.

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agocmd: handle errors well, throw non-zero exit code on error
Rohit Yadav [Mon, 25 Jun 2018 10:48:06 +0000 (16:18 +0530)] 
cmd: handle errors well, throw non-zero exit code on error

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agoMakefile: Fix gopath in command (#21)
dahn [Sat, 23 Jun 2018 19:17:35 +0000 (21:17 +0200)] 
Makefile: Fix gopath in command (#21)

Fixes build failures in some environments.

5 months agonetwork: Fix glint error
Rohit Yadav [Sat, 23 Jun 2018 19:12:24 +0000 (00:42 +0530)] 
network: Fix glint error

Rename to jobID

5 months agoconfig: add inbuilt API precache
Rohit Yadav [Sat, 23 Jun 2018 15:59:33 +0000 (21:29 +0530)] 
config: add inbuilt API precache

This adds API precache based on 4.11.1 which is used in environments
without any existing API cache.

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agocmd: on async job error, also print job response
Rohit Yadav [Sat, 23 Jun 2018 15:36:27 +0000 (21:06 +0530)] 
cmd: on async job error, also print job response

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agonetwork: implement asyncblock for polling job results
Rohit Yadav [Sat, 23 Jun 2018 15:14:04 +0000 (20:44 +0530)] 
network: implement asyncblock for polling job results

This implements async blocking if config option is enabled by polling
the async job id and showing a cursor.

Add vendor dependency: briandowns/spinner

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agoconfig: enable asyncblock by default, fix double space
Rohit Yadav [Sat, 23 Jun 2018 15:11:46 +0000 (20:41 +0530)] 
config: enable asyncblock by default, fix double space

Signed-off-by: Rohit Yadav <rohit@apache.org>
5 months agoconfig: change default prompt to :cat:
Rohit Yadav [Wed, 20 Jun 2018 07:46:28 +0000 (13:16 +0530)] 
config: change default prompt to :cat:

In loving memory of my kitten 'Happy' 🐈,
from henceforth please keep the default prompt to the change introduced
in this commit.

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoFixes #17: handle errors when unable to connect
Rohit Yadav [Wed, 9 May 2018 13:41:40 +0000 (19:11 +0530)] 
Fixes #17: handle errors when unable to connect

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoapi: fix linting issue and order by filter keys
Rohit Yadav [Fri, 4 May 2018 11:50:12 +0000 (17:20 +0530)] 
api: fix linting issue and order by filter keys

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoconfig: allow custom prompt
Rohit Yadav [Fri, 4 May 2018 11:49:48 +0000 (17:19 +0530)] 
config: allow custom prompt

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agovendor: add missing go-runewidth dependency
Rohit Yadav [Wed, 25 Apr 2018 14:56:44 +0000 (16:56 +0200)] 
vendor: add missing go-runewidth dependency

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoapi: wip refactor output code, using output type, response and filter opts
Rohit Yadav [Sun, 22 Apr 2018 15:29:33 +0000 (20:59 +0530)] 
api: wip refactor output code, using output type, response and filter opts

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agohelp: don't display the 'fake' filter option in api help doc
Rohit Yadav [Sun, 22 Apr 2018 15:29:05 +0000 (20:59 +0530)] 
help: don't display the 'fake' filter option in api help doc

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoset: display server profile details when profile is `set`
Rohit Yadav [Sun, 22 Apr 2018 15:28:23 +0000 (20:58 +0530)] 
set: display server profile details when profile is `set`

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agocompleter: use response keys to show filter options
Rohit Yadav [Sun, 22 Apr 2018 15:27:55 +0000 (20:57 +0530)] 
completer: use response keys to show filter options

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agocache: add API response keys in API cache for filter options
Rohit Yadav [Sun, 22 Apr 2018 15:27:19 +0000 (20:57 +0530)] 
cache: add API response keys in API cache for filter options

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agocmd: introduce poc text and table outputs
Rohit Yadav [Sat, 21 Apr 2018 16:54:17 +0000 (22:24 +0530)] 
cmd: introduce poc text and table outputs

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agocmk: fix presentational issues
Rohit Yadav [Mon, 16 Apr 2018 15:50:16 +0000 (21:20 +0530)] 
cmk: fix presentational issues

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoclient: implement login based API calls, simplify config
Rohit Yadav [Mon, 16 Apr 2018 02:07:41 +0000 (07:37 +0530)] 
client: implement login based API calls, simplify config

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoset: autocompletion for set parameters
Rohit Yadav [Sat, 14 Apr 2018 01:14:25 +0000 (06:44 +0530)] 
set: autocompletion for set parameters

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agohelp: fix help to work with -h and help <api>
Rohit Yadav [Sat, 14 Apr 2018 00:02:58 +0000 (05:32 +0530)] 
help: fix help to work with -h and help <api>

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agolint: introduce lint and fix lint issues
Rohit Yadav [Fri, 13 Apr 2018 22:43:20 +0000 (04:13 +0530)] 
lint: introduce lint and fix lint issues

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoprompt: emoji-roulette on new shell
Rohit Yadav [Fri, 13 Apr 2018 22:05:58 +0000 (03:35 +0530)] 
prompt: emoji-roulette on new shell

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoabout: add separate go file for cli name, version
Rohit Yadav [Fri, 13 Apr 2018 21:55:06 +0000 (03:25 +0530)] 
about: add separate go file for cli name, version

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoconfig: implement ini based config same as legacy cloudmonkey
Rohit Yadav [Fri, 13 Apr 2018 21:54:27 +0000 (03:24 +0530)] 
config: implement ini based config same as legacy cloudmonkey

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agovendor: merge readline forks, add go-ini for config management
Rohit Yadav [Fri, 13 Apr 2018 18:50:39 +0000 (00:20 +0530)] 
vendor: merge readline forks, add go-ini for config management

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agodocs: display better formatted help with 80char width
Rohit Yadav [Fri, 13 Apr 2018 18:37:39 +0000 (00:07 +0530)] 
docs: display better formatted help with 80char width

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agotravis: enable travis for build checks
Rohit Yadav [Fri, 13 Apr 2018 18:30:19 +0000 (00:00 +0530)] 
travis: enable travis for build checks

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agoconfig: use a cross-platform compatible monkey emoji
Rohit Yadav [Fri, 13 Apr 2018 18:29:59 +0000 (23:59 +0530)] 
config: use a cross-platform compatible monkey emoji

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agocmk: on error return non-zero exit code
Rohit Yadav [Fri, 13 Apr 2018 12:52:45 +0000 (18:22 +0530)] 
cmk: on error return non-zero exit code

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agocli: improve docs output
Rohit Yadav [Fri, 13 Apr 2018 12:52:03 +0000 (18:22 +0530)] 
cli: improve docs output

Signed-off-by: Rohit Yadav <rohit@apache.org>
7 months agocli: improve selector and autocompletion
Rohit Yadav [Fri, 13 Apr 2018 12:51:32 +0000 (18:21 +0530)] 
cli: improve selector and autocompletion

Signed-off-by: Rohit Yadav <rohit@apache.org>
8 months agocli: implement auto-completion for apis
Rohit Yadav [Thu, 12 Apr 2018 23:13:09 +0000 (04:43 +0530)] 
cli: implement auto-completion for apis

Signed-off-by: Rohit Yadav <rohit@apache.org>
8 months agovendor: introduce vendoring and build system
Rohit Yadav [Wed, 11 Apr 2018 00:19:09 +0000 (05:49 +0530)] 
vendor: introduce vendoring and build system

- Adds vendor and dependencies
- Improved build system (Makefile based from
  https://github.com/vincentbernat/hellogopher)
- GOPATH free, no need to have source put in $GOPATH run/build from
  anywhere

Signed-off-by: Rohit Yadav <rohit@apache.org>
8 months agocloudmonkey: initial Go port (cmk)
Rohit Yadav [Tue, 10 Apr 2018 22:36:56 +0000 (04:06 +0530)] 
cloudmonkey: initial Go port (cmk)

- Basic command handling and shell
- API verb, resource autocompletion
- PoC API arg autocompletion with interactive selector

Signed-off-by: Rohit Yadav <rohit@apache.org>
8 months agocloudmonkey: purge legacy files
Rohit Yadav [Tue, 10 Apr 2018 22:32:40 +0000 (04:02 +0530)] 
cloudmonkey: purge legacy files

Signed-off-by: Rohit Yadav <rohit@apache.org>
2 years agocloudmonkey: update precache against latest CloudStack master
Rohit Yadav [Sun, 20 Nov 2016 09:01:35 +0000 (14:31 +0530)] 
cloudmonkey: update precache against latest CloudStack master

This includes 542 APIs discovered by cloudmonkey caching system

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoMerge pull request #13 from phillipkent/fix_bug_windows_readline 5.3.3
Rohit Yadav [Fri, 15 Jul 2016 11:16:05 +0000 (16:46 +0530)] 
Merge pull request #13 from phillipkent/fix_bug_windows_readline

fix bug in using readline in WindowsI found a bug with use of 'readline' for Python 2.7 on Windows 7. Cloudmonkey fails to run with this error:

File c:\python27\lib\site-packages\cloudmonkey\cloudmonkey.py  line 70 module>
            If libedit in readline.__doc__
TypeError:  argument of type NoneType is not iterable

It requires modification of cloudmonkey.py at line 70.

The error and fix are the same as reported here:
http://bugs.python.org/issue18852
https://hg.python.org/cpython/rev/3070fdd58645

Note: I haven't tested this for Cloudmonkey in other Windows versions, or other Python versions.

* pr/13:
  fix bug in using readline in Windows

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agofix bug in using readline in Windows 13/head
Phillip Kent [Tue, 26 Apr 2016 10:21:01 +0000 (11:21 +0100)] 
fix bug in using readline in Windows

2 years agoMerge pull request #11 from phillipkent/fix_urllib_quote_plus
Rohit Yadav [Thu, 7 Apr 2016 11:29:12 +0000 (16:59 +0530)] 
Merge pull request #11 from phillipkent/fix_urllib_quote_plus

Update requester.pyurllib.quote_plus() requires the option safe="*" (that is, the * character is not encoded) to be consistent with CloudStack's internal encoder/decoder. Without this, API calls containing the * character will fail API authentication.

* pr/11:
  Update requester.py

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoREADME: add pip install method using git repo
Rohit Yadav [Wed, 10 Feb 2016 21:08:47 +0000 (22:08 +0100)] 
README: add pip install method using git repo

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoMerge pull request #12 from 'waegemae/master'
Rohit Yadav [Tue, 19 Jan 2016 14:47:59 +0000 (15:47 +0100)] 
Merge pull request #12 from 'waegemae/master'

Allow 'sync' as a verb without overriding the cloudmonkey sync implementation

BUG-ID: CLOUDSTACK-9233
Reviewed-by: Frank Maximus frank.maximus@nuagenetworks.net
Reported-by :Eric Waegeman eric.waegeman@nuagenetworks.net

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCHANGES: update changes file
Rohit Yadav [Tue, 19 Jan 2016 14:27:23 +0000 (15:27 +0100)] 
CHANGES: update changes file

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: print csv rows based on what's available
Rohit Yadav [Tue, 19 Jan 2016 14:24:01 +0000 (15:24 +0100)] 
cloudmonkey: print csv rows based on what's available

This fails if the row item has any additional key than the first row with error:
Error on parsing and printing dict contains fields not in fieldnames

The fix is to start with an empty dictionary fill it based on known keys and
then ask csv to print that row

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: manually print csv header
Rohit Yadav [Tue, 19 Jan 2016 14:22:22 +0000 (15:22 +0100)] 
cloudmonkey: manually print csv header

Python 2.6 and below don't have 'writeheader' method, so simply
print the header manually

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoSummary: Allow 'sync' as a verb without overriding the cloudmonkey sync implementation 12/head
Eric Waegeman [Wed, 13 Jan 2016 14:48:38 +0000 (15:48 +0100)] 
Summary: Allow 'sync' as a verb without overriding the cloudmonkey sync implementation

BUG-ID: CLOUDSTACK-9233
Reviewed-by: Frank Maximus <frank.maximus@nuagenetworks.net>
Reported-by :Eric Waegeman <eric.waegeman@nuagenetworks.net>

2 years agocloudmonkey: return autocompletion suggestions sorted by name
Rohit Yadav [Tue, 12 Jan 2016 18:29:52 +0000 (23:59 +0530)] 
cloudmonkey: return autocompletion suggestions sorted by name

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: zsh styled history invocation using !
Rohit Yadav [Fri, 8 Jan 2016 16:56:11 +0000 (22:26 +0530)] 
cloudmonkey: zsh styled history invocation using !

- Can run historic command with history !<num> or just !<num> on the shell
- Instead of running the history command, print on prompt and waits for user
  action
- history c or history clear to clear history

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoUpdate requester.py 11/head
Phillip Kent [Sat, 19 Dec 2015 15:47:56 +0000 (15:47 +0000)] 
Update requester.py

urllib.quote_plus() requires the option safe="*" (that is, the * character is not encoded) to be consistent with CloudStack's internal encoder/decoder. Without this, API calls containing the * character will fail API authentication.

2 years agocloudmonkey: add new command history to see history
Rohit Yadav [Wed, 16 Dec 2015 11:18:03 +0000 (16:48 +0530)] 
cloudmonkey: add new command history to see history

Adds new cloudmonkey command 'history' to list history, clear history and
list last 'n' lines from the history

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoRevert "Fix some parameters are double encoded" 5.3.2
Rohit Yadav [Wed, 19 Aug 2015 08:59:05 +0000 (14:29 +0530)] 
Revert "Fix some parameters are double encoded"

This breaks API, api expects only single encoding. Tested against 4.5.1.

... "(UI uses javascript to encode on
the fly, see ui/scripts/accounts.js:1852), such as registerSSHKeyPair/publickey.
I did a quick search for other cases, bu there may be more parameters."

This reverts commit 6bd92395592c133a63b8087bf4acc9cb3a1aac0d.

3 years agoCHANGES: update changes since 5.3.1
Rohit Yadav [Fri, 14 Aug 2015 08:52:01 +0000 (14:22 +0530)] 
CHANGES: update changes since 5.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: update precache
Rohit Yadav [Fri, 14 Aug 2015 08:47:07 +0000 (14:17 +0530)] 
cloudmonkey: update precache

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: update changelog wrt 5.3.2
Rohit Yadav [Tue, 11 Aug 2015 04:53:16 +0000 (10:23 +0530)] 
CHANGES: update changelog wrt 5.3.2

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoFIX responses /contain/ word "response", but may not exactly match
Nuno Tavares [Mon, 3 Aug 2015 09:06:23 +0000 (11:06 +0200)] 
FIX responses /contain/ word "response", but may not exactly match

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #8

3 years agorequester: handle error when no response is found in the API response
Rohit Yadav [Tue, 14 Jul 2015 07:53:23 +0000 (13:23 +0530)] 
requester: handle error when no response is found in the API response

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoremove whitespace. This close #7
pdion891 [Sat, 4 Jul 2015 12:31:42 +0000 (08:31 -0400)] 
remove whitespace. This close #7

3 years agoremove docker.io from image path, update doc
Pierre-Luc Dion [Tue, 30 Jun 2015 12:35:53 +0000 (08:35 -0400)] 
remove docker.io from image path, update doc

Signed-off-by: pdion891 <pdion891@apache.org>
3 years agocleanup, remove commented lines
Pierre-Luc Dion [Tue, 30 Jun 2015 12:35:27 +0000 (08:35 -0400)] 
cleanup, remove commented lines

Signed-off-by: pdion891 <pdion891@apache.org>
3 years agoUpdate contribution howto, add Docker howto
Pierre-Luc Dion [Mon, 29 Jun 2015 11:09:36 +0000 (07:09 -0400)] 
Update contribution howto, add Docker howto

Signed-off-by: pdion891 <pdion891@apache.org>
3 years agobuild cloudmonkey at docker build
Pierre-Luc Dion [Mon, 29 Jun 2015 10:57:54 +0000 (06:57 -0400)] 
build cloudmonkey at docker build

Signed-off-by: pdion891 <pdion891@apache.org>
3 years agoinitial Dockerization files
Pierre-Luc Dion [Sat, 20 Jun 2015 14:39:10 +0000 (10:39 -0400)] 
initial Dockerization files

Signed-off-by: pdion891 <pdion891@apache.org>
3 years agocloudmonkey: aggregate keys from response items to print table's header
Rohit Yadav [Mon, 29 Jun 2015 21:40:14 +0000 (23:40 +0200)] 
cloudmonkey: aggregate keys from response items to print table's header

In case a response item lacks sufficient keys, cloudmonkey's tabular output
would print multiple table headers. The fix finds superset of keys of the items
and prints it before proceeding. For items which lack a key, empty values are
printed

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix csv output to correctly output UTF8 strings
Rohit Yadav [Fri, 19 Jun 2015 12:56:20 +0000 (15:56 +0300)] 
cloudmonkey: fix csv output to correctly output UTF8 strings

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: add note on csv output display
Rohit Yadav [Fri, 5 Jun 2015 15:16:38 +0000 (17:16 +0200)] 
CHANGES: add note on csv output display

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: add a new output format CSV
Rohit Yadav [Fri, 5 Jun 2015 15:10:15 +0000 (17:10 +0200)] 
cloudmonkey: add a new output format CSV

With CSV, it's possible to now export CloudStack data to an excel sheet for
example :)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>