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

Add support for checkpoint distributions and publications #1130

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daviddavis
Copy link
Contributor

@daviddavis daviddavis commented Jan 30, 2025

This is the pulp-cli change that goes along with the new checkpoint feature: pulp/pulpcore#6245

fixes #1129

@daviddavis daviddavis force-pushed the daviddavis/add-checkpoint-fields branch from 01f22b8 to f65654c Compare January 30, 2025 19:10
Comment on lines +74 to +79
click.option(
"--checkpoint",
is_flag=True,
default=False,
help=_("Create a checkpoint distribution."),
),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be tri-state: Set, unset, don't touch.
Would this work?

Suggested change
click.option(
"--checkpoint",
is_flag=True,
default=False,
help=_("Create a checkpoint distribution."),
),
click.option(
"--checkpoint/--not-checkpoint",
# is_flag=True, # this is implied by the "/" i think
default=None,
help=_("Create a checkpoint distribution."),
),

Comment on lines +59 to +64
click.option(
"--checkpoint",
is_flag=True,
default=False,
help=_("Create a checkpoint publication"),
),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it's only for create. This should be fine.

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.

Add support for checkpoint distributions and publications
2 participants