Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli conversion (fix #189) #310

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open

Conversation

borrob
Copy link
Collaborator

@borrob borrob commented Jan 8, 2020

This PR brings an unified CLI to control GeoHealthCheck (fix #189).

I introduced click to take control over all the cli-commands and I was able to completely phase out paver (paver is still available, but I marked it as deprecated). To keep an overview, I kept all of the cli commands in the file geohc_cli.py. I also introduced a setup.py file in order to install GHC with a simple pip install .. I believe we can now also upload it to pypi.

@tomkralidis : can you review the setup.py file since I assumed you would be the maintainer.

The CLI command now allow for: geohc create-instance, geohc db-create, geohc db-adduser -u rob -p mypass -e [email protected] -r admin, and geohc --help.

borrob and others added 30 commits December 11, 2019 21:23
The new CLI will call commands from outside the package. The import statements
needed to be reworked. Not proud of the solution, but I cannot think of
something better now.
With the setup file we can install the cli command `geohc` and build eggs and
wheels.
Move all the models.py ... commands to the geohc cli and add deprecation
warnings.
Need to fix loose ends:
- DB exists, but still needs db-create
- check import statements
- fix env setting for GHC_SETTINGS_CONF
- check non-docker build
- update docs
TODO: test the create-instance, double check os.path things
@justb4 justb4 added this to the Version 0.8.0 milestone Jan 9, 2020
@justb4
Copy link
Member

justb4 commented Jan 9, 2020

@borrob again great effort! See you even thought of Docker build. @tomkralidis will you be able to review?

.travis.yml Show resolved Hide resolved
GeoHealthCheck/__init__.py Outdated Show resolved Hide resolved
GeoHealthCheck/geohc_cli.py Outdated Show resolved Hide resolved
GeoHealthCheck/models.py Outdated Show resolved Hide resolved
docker/scripts/requirements.txt Show resolved Hide resolved
docs/admin.rst Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
setup.py Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
@borrob borrob mentioned this pull request Jan 15, 2020
@justb4 justb4 modified the milestones: Version 0.8.0, Version 0.8.1 Jul 7, 2020
@justb4 justb4 modified the milestones: Version 0.8.1, Version 0.9.0 Nov 2, 2020
@justb4 justb4 modified the milestones: Version 0.9.0, Version 0.9.1 Aug 10, 2022
@justb4 justb4 modified the milestones: Version 0.9.1, Version 0.9.2 Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify CLI interface
4 participants