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

Design CLI subcommands #311

Open
borrob opened this issue Jan 15, 2020 · 1 comment
Open

Design CLI subcommands #311

borrob opened this issue Jan 15, 2020 · 1 comment

Comments

@borrob
Copy link
Collaborator

borrob commented Jan 15, 2020

As follow up on issue #189 and discussion in PR #310:

The current CLI commands are:
build-wheel
clean
create-hash
create-instance
create-secret-key
create-wsgi
db
lang-add-language-catalogue
lang-compile-translations
lang-extract-translations
lang-update-translations
run-healthchecks
run-tests
runner-daemon
serve
update-docs
version

Where db has the sub commands: adduser, create, drop, export, flush, load, upgrade.

In this issue I want to discuss the design and reordering of the other commands. I can think of a logical grouping based on 'task' (like 'run', 'create'). That would make:
geohc create with subcommands hash, instance, secret-key, wsgi
geohc run with subcommands tests, healthchecks, tests, daemon, serve
geohc lang with all the language pack commands.

Any further suggestions?

@justb4
Copy link
Member

justb4 commented Jan 15, 2020

Good suggestion! Wanted to suggest already scanning the CLI list. Always regret that I did not introduce sub-commands with stetl...

Requires some thinking of logical grouping for remainder. Possibly:

  • geohc info with version and possibly others later like showing config
  • geohc build with wheel, docker, docs clean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants