You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/10/13 13:06:26 UTC

[03/50] stratos git commit: Resolving the '-' issue

Resolving the '-' issue

Signed-off-by: Imesh Gunaratne <im...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/ba5440cb
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/ba5440cb
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/ba5440cb

Branch: refs/heads/stratos-4.1.x
Commit: ba5440cbf2bdb735064f2335bd9b1620f169b4d3
Parents: 129fd5d
Author: Milindu Sanoj Kumarage <ag...@gmail.com>
Authored: Fri May 22 17:39:16 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Tue Oct 13 16:32:44 2015 +0530

----------------------------------------------------------------------
 .../src/main/python/README.md                      | 17 +++++++++++------
 .../src/main/python/cli/CLI.py                     |  4 ++++
 2 files changed, 15 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/ba5440cb/components/org.apache.stratos.python.cli/src/main/python/README.md
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/README.md b/components/org.apache.stratos.python.cli/src/main/python/README.md
index c12d195..8b734d1 100644
--- a/components/org.apache.stratos.python.cli/src/main/python/README.md
+++ b/components/org.apache.stratos.python.cli/src/main/python/README.md
@@ -1,20 +1,25 @@
- Apache Stratos CLI
- ==================
+Apache Stratos CLI
+==================
  
 Build and install stratos CLI by,
 
- $ python setup.py build
- $ python setup.py install
+``` 
+$ python setup.py build
+$ python setup.py install
+```
 
 or use
-
+```
  $ python setup.py develop
+```
 
 instead `install` if developing
 
 To start the Python CLI issue, 
 
- $ stratos
+```
+$ stratos
+```
  
  
  

http://git-wip-us.apache.org/repos/asf/stratos/blob/ba5440cb/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py b/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
index eccd2ab..7ba7dcd 100755
--- a/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
+++ b/components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
@@ -12,6 +12,10 @@ class CLI(Cmd):
     Cmd.legalChars += '-'
     Cmd.shortcuts.update({'deploy-user': 'deploy_user'})
 
+    def completenames(self, text, *ignored):
+        return [a[3:].replace('_','-') for a in self.get_names() if a.replace('_','-').startswith('do-'+text)]
+
+
     @options([
         make_option('-u', '--username', type="str", help="Username of the user"),
         make_option('-p', '--password', type="str", help="Password of the user")