diff --git a/CHANGES/243.feature b/CHANGES/243.feature new file mode 100644 index 0000000..f23e37a --- /dev/null +++ b/CHANGES/243.feature @@ -0,0 +1 @@ +Add autopublish option for repository creation and updation diff --git a/pulpcore/cli/deb/repository.py b/pulpcore/cli/deb/repository.py index f1c40e8..e37738a 100644 --- a/pulpcore/cli/deb/repository.py +++ b/pulpcore/cli/deb/repository.py @@ -120,11 +120,11 @@ def repository(ctx: click.Context, pulp_ctx: PulpCLIContext, /, repo_type: str) update_options = [ click.option("--description"), remote_option, - # pulp_option( - # "--autopublish/--no-autopublish", - # needs_plugins=[PluginRequirement("deb", specifier=">=999.0.0")], - # default=None, - # ), + pulp_option( + "--autopublish/--no-autopublish", + needs_plugins=[PluginRequirement("deb", specifier=">=3.8.0")], + default=None, + ), retained_versions_option, ] create_options = update_options + [click.option("--name", required=True)]