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

feat: automatically add --verbosity to scripts and other CLI fixes [APE-1091] #1486

Merged
merged 11 commits into from
Jun 14, 2023

Conversation

antazoey
Copy link
Contributor

@antazoey antazoey commented Jun 14, 2023

What I did

  • feat: now instead of from ape.cli.options import verbosity_options, you can do from ape.cli import verbosity_option.
  • feat: automatically add --verbosity option to main and cli based scripts
  • fix: AttributeError from certain custom option classes not having an attribute named .name
  • feat: Allow verbosity_option() to work without passing in the logger as an argument
  • feat: Will accept integer values for --verbosity

needed for silverback ApeWorX/silverback#9

How I did it

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@vany365 vany365 changed the title feat: export verbosity option from ape.cli namespace feat: export verbosity option from ape.cli namespace [APE-1091] Jun 14, 2023
sabotagebeats
sabotagebeats previously approved these changes Jun 14, 2023
@antazoey
Copy link
Contributor Author

antazoey commented Jun 14, 2023

  • automatically add verbosity to scripts since it already is added if you put it before run

sabotagebeats
sabotagebeats previously approved these changes Jun 14, 2023
@antazoey antazoey force-pushed the feat/export-verbosity-option branch from 69d1635 to 19593a7 Compare June 14, 2023 18:55
@antazoey antazoey force-pushed the feat/export-verbosity-option branch from 82f5ef8 to f1a5162 Compare June 14, 2023 19:20
@antazoey antazoey changed the title feat: export verbosity option from ape.cli namespace [APE-1091] feat: automatically add --verbosity to scripts and other CLI fixes [APE-1091] Jun 14, 2023
sabotagebeats
sabotagebeats previously approved these changes Jun 14, 2023
@antazoey antazoey enabled auto-merge (squash) June 14, 2023 19:31
@antazoey
Copy link
Contributor Author

ive got tests fixed locally but going to merge a few other PRs before pushing, fyi

@antazoey antazoey merged commit ad42ebb into ApeWorX:main Jun 14, 2023
17 checks passed
@antazoey antazoey deleted the feat/export-verbosity-option branch June 14, 2023 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants