-
Notifications
You must be signed in to change notification settings - Fork 102
rename validate config to config validate for config grouping #2559
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
rename validate config to config validate for config grouping #2559
Conversation
Build succeeded. ✔️ pre-commit SUCCESS in 2m 07s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the contribution! This was not working locally for me, I have added a comment on what you can try to do instead. Let me know in case of any questions.
packit/cli/__init__.py
Outdated
|
||
import click | ||
|
||
from packit.cli.config import config # Import the new config group | ||
|
||
|
||
@click.group() | ||
def cli(): | ||
pass | ||
|
||
|
||
# Register the config group. | ||
cli.add_command(config) | ||
|
||
if __name__ == "__main__": | ||
cli() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of this, the command should be added here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok @lbarcziova. Thanks for taking out time to review my code. will amend as requested
Build failed. ❌ pre-commit FAILURE in 2m 02s |
packit/cli/__init__.py
Outdated
|
||
import click | ||
|
||
from packit.cli.config import config # Import the new config group | ||
|
||
|
||
@click.group() | ||
def cli(): | ||
pass | ||
|
||
|
||
if __name__ == "__main__": | ||
cli() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say this is not needed as we are initialising it here
Build succeeded. ✔️ pre-commit SUCCESS in 2m 06s |
packit/cli/__init__.py
Outdated
|
||
from packit.cli.packit_base import packit_base | ||
|
||
if __name__ == "__main__": | ||
packit_base() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this file doesn't need any changes generally, because the initialisation happens already here
Build succeeded. ✔️ pre-commit SUCCESS in 2m 04s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Can you please squash the commits and rebase?
Build succeeded. ✔️ pre-commit SUCCESS in 2m 06s |
Hello @lbarcziova , a gentle reminder that i have squashed and rebased |
Signed-off-by: Olamidepeterojo <peterojoolamide@gmail.com> [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
@olamidepeterojo sorry, I was out last week, going to merge this now. |
Build succeeded. ✔️ pre-commit SUCCESS in 2m 09s |
regate |
Build succeeded (gate pipeline). ✔️ pre-commit SUCCESS in 2m 05s |
a66cbcb
into
packit:main
The command was renamed from `validate-config` to `config validate` in packit/packit#2559
The command was renamed from `validate-config` to `config validate` in packit/packit#2559
Adjust validate-config occurences to the rename The command was renamed from validate-config to config validate in packit/packit#2559 Reviewed-by: Matej Focko
The command was renamed from `validate-config` to `config validate` in packit/packit#2559
The command was renamed from `validate-config` to `config validate` in packit/packit#2559
Adjust validate-config occurences to the rename The command was renamed from validate-config to config validate in packit/packit#2559 TODO: fix references (packit-service, ?) RELEASE NOTES BEGIN N/A RELEASE NOTES END Reviewed-by: František Lachman <flachman@redhat.com>
TODO:
packit/packit.dev
.Fixes #2437
Related to
Merge before/after
RELEASE NOTES BEGIN
We have introduced a new command group
config
for configuration-related commands and movedvalidate-config
command under it, resulting in the new command beingpackit config validate
.RELEASE NOTES END