Skip to content

Commit

Permalink
Add support for checkpoint distributions and publications
Browse files Browse the repository at this point in the history
fixes #1129
  • Loading branch information
daviddavis committed Jan 30, 2025
1 parent cfb14be commit 01f22b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pulpcore/cli/file/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ def distribution(ctx: click.Context, pulp_ctx: PulpCLIContext, distribution_type
repository_option,
content_guard_option,
pulp_labels_option,
click.option(
"--checkpoint",
is_flag=True,
default=False,
help=_("Create a checkpoint distribution."),
),
]
create_options = common_distribution_create_options + update_options

Expand Down
6 changes: 6 additions & 0 deletions pulpcore/cli/file/publication.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ def publication(ctx: click.Context, pulp_ctx: PulpCLIContext, publication_type:
"--manifest",
help=_("Filename to use for manifest file containing metadata for all the files."),
),
click.option(
"--checkpoint",
is_flag=True,
default=False,
help=_("Create a checkpoint publication"),
),
]
publication.add_command(list_command(decorators=publication_filter_options + [repository_option]))
publication.add_command(show_command(decorators=lookup_options))
Expand Down

0 comments on commit 01f22b8

Please sign in to comment.