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

clean: use cobra built-in feature for pre-validation #213

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

subhamkrai
Copy link
Collaborator

@subhamkrai subhamkrai commented Dec 13, 2023

Let's use cobra PreRun,PreRunE, PersistentPreRun and PersistentPreRun feature to do pre-validation checks. Also, refactor the code.

Checklist:
Description of your changes:

Which issue is resolved by this Pull Request:
Resolves #

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • CI tests has been updated, if necessary.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.

@subhamkrai subhamkrai force-pushed the clean-repetitive-code branch 4 times, most recently from e945f59 to ec47c5e Compare December 13, 2023 10:41
Let's use cobra `PreRun`,`PreRunE`, `PersistentPreRun` and
`PersistentPreRun` feature to do pre-validation checks.
Also, refactor the code.

Signed-off-by: subhamkrai <srai@redhat.com>
@subhamkrai subhamkrai merged commit a48030e into rook:master Dec 14, 2023
5 checks passed
@subhamkrai subhamkrai deleted the clean-repetitive-code branch December 14, 2023 05:01
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.

2 participants