-
Notifications
You must be signed in to change notification settings - Fork 63
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
Simplify command line interface #153
base: master
Are you sure you want to change the base?
Conversation
remove the |
I think that underscore and dash should not be mixed in parameters, like in |
damn copy-paste :/ |
suggestions:
or by
After trying it, Well, we need to discuss that together... |
Disclaimer: I have very little context and might make irrelevant comments ;) I think it's a great idea to revamp the CLI. My quick thoughts: The words What if all commands were first focused on objects and then on actions, following Christophe's suggestion?
|
Motivation and description of the pull request
The command-line interface is currently pretty hard to use (there's currently 61 options and filters available and
hiptest-publisher --help
is pretty hard to read/understand).Another issue is that there is in fact two/three tools built in
hiptest-publisher
:The idea behind this PR is to see what could be doable to make this better. I've been trying GLI to create sub-commands in order to make this simpler.
I also renamed the command line
hiptest-cli
as we do more than publishing.It looks like this now:
And each sub-command as its own parameters:
publishing
The sub-command is named
publish
. It still has a load of options (but I removed some liketest-only
, `àctionwords-onlyand
leafless``which are deprecated and/or buggy).Note: filter is a sub-command here. But the tests will be published too.
upgrading action words library
The sub-command is named
scale
which is an awful name :/ Any better proposition is welcome :)pushing results
The sub-command has been named
share
as--push
may not be that self-explanatory.TODO
Discuss :D
Ease migration
Also one thing I'd like is to have hiptest-publisher 2.0 supporting only this new system, but the next releases in the 1.x should help users in the migration.
Something like this:
Ease migration to new config file format
GLI support config files based on the interface in a Yaml format, we should have something like:
hiptest-publisher -c config-file --generate-hiptest-cli-config site: https://hiptest.com publish: language: java overriden_templates: "./templates" share: test_run_id: 12 push_format: junta
Find a better wording
Most of the options are not self-explanatory :/ at least the help for them should be easier to understand.
Type of change
Checklist: