Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Python CLI GSoC15 #437

Open
wants to merge 79 commits into
base: gsoc-projects-2015
Choose a base branch
from

Conversation

agentmilindu
Copy link
Contributor

No description provided.

 On branch python-cli
	new file:   components/org.apache.stratos.python.cli/src/main/python/cli/__init__.py
 On branch python-cli
	new file:   components/org.apache.stratos.python.cli/src/main/python/cli/setup.cfg
	new file:   components/org.apache.stratos.python.cli/src/main/python/cli/setup.py
 On branch python-cli
	new file:   components/org.apache.stratos.python.cli/src/main/python/tests/__init__.py
 On branch python-cli
	renamed:    components/org.apache.stratos.python.cli/src/main/python/cli/setup.cfg -> components/org.apache.stratos.python.cli/src/main/python/setup.cfg
	renamed:    components/org.apache.stratos.python.cli/src/main/python/cli/setup.py -> components/org.apache.stratos.python.cli/src/main/python/setup.py

Refer https://pythonhosted.org/an_example_pypi_project/setuptools.html#directory-structure
 On branch python-cli
	new file:   components/org.apache.stratos.python.cli/src/main/python/cli/Main.py

Main file contains the main() method,  the entry point of the CLI
 On branch python-cli
	new file:   components/org.apache.stratos.python.cli/src/main/python/cli/CLI.py
	new file:   components/org.apache.stratos.python.cli/src/main/python/cli/Stratos.py
 On branch python-cli
	modified:   components/org.apache.stratos.python.cli/src/main/python/cli/Main.py
 On branch python-cli
	modified:   cli/CLI.py
	modified:   cli/Main.py
	modified:   cli/Stratos.py
	modified:   setup.py

Now anyone build and install stratos CLI by,

 $ python setup.py build
 $ python setup.py install

or use

 $  python setup.py develop

instead `install` if developing
 On branch python-cli
	renamed:    README.md -> README.rst

Using rst(reStructuredText) file as setup.py's description, this will become the description of stratos on Pip.
Therefor adding the default Stratos CLI guide there.
Python CLI specific details would reside on README.md
 On branch python-cli
	new file:   .gitignore

Ignoring
 build/
 dist/
 stratos.egg-info/
 On branch python-cli
	new file:   README.md
Python CLI specific README
 On branch python-cli
	modified:   setup.py
 On branch python-cli
	new file:   cli/Utils.py
 On branch python-cli
	new file:   cli/Logging.py
 On branch python-cli
	modified:   cli/CLI.py
	new file:   cli/Configs.py
	modified:   cli/Logging.py
 On branch python-cli
	modified:   components/org.apache.stratos.python.cli/src/main/python/cli/Configs.py
	modified:   components/org.apache.stratos.python.cli/src/main/python/cli/Logging.py
 Using python os.path.join() to avoid forward/back slash problems
 Setting empty strings as defaults for username and password evn vars instead of None
])
@auth
def do_list_cartridges(self, line , opts=None):
"""Retrieve details of available cartridges."""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like parameters are missing in the method comment.

@imesh
Copy link
Contributor

imesh commented Nov 30, 2015

I think we have merged this PR (Python CLI) to master branch. If so shall we close this?
Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants