You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2012/11/01 09:58:08 UTC

git commit: cli: add more verbs to grammar

Updated Branches:
  refs/heads/master 8dd1991e6 -> 51a5377d0


cli: add more verbs to grammar

Adds additional verbs to grammar of cli

Signed-off-by: Rohit Yadav <bh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/51a5377d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/51a5377d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/51a5377d

Branch: refs/heads/master
Commit: 51a5377d05c557e20ed1768e1a8d9ac2fe60cfec
Parents: 8dd1991
Author: Rohit Yadav <bh...@apache.org>
Authored: Thu Nov 1 14:12:08 2012 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Thu Nov 1 14:12:08 2012 +0530

----------------------------------------------------------------------
 tools/cli/cloudmonkey/cloudmonkey.py |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/51a5377d/tools/cli/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py
index 9147d05..ba15001 100644
--- a/tools/cli/cloudmonkey/cloudmonkey.py
+++ b/tools/cli/cloudmonkey/cloudmonkey.py
@@ -284,8 +284,14 @@ class CloudStackShell(cmd.Cmd):
 
 
 def main():
-    grammar = ['list',  'create', 'delete', 'update', 'disable', 'enable',
-               'add', 'remove']
+    grammar = ['create', 'list', 'delete', 'update',
+               'enable', 'disable', 'add', 'remove', 'attach', 'detach',
+               'assign', 'authorize', 'change', 'register',
+               'start', 'restart', 'reboot', 'stop', 'reconnect',
+               'cancel', 'destroy', 'revoke',
+               'copy', 'extract', 'migrate', 'restore',
+               'get', 'prepare', 'deploy', 'upload']
+
     self = CloudStackShell
     for rule in grammar:
         setattr(self, 'completions_' + rule, map(lambda x: x.replace(rule, ''),