2626from pulp_cli .generic import (
2727 PulpCLIContext ,
2828 chunk_size_option ,
29+ content_filter_options ,
2930 create_command ,
30- exclude_field_option ,
31- field_option ,
3231 href_option ,
3332 label_command ,
34- label_select_option ,
3533 list_command ,
3634 pass_entity_context ,
3735 pass_pulp_context ,
@@ -111,10 +109,10 @@ def content() -> None:
111109
112110
113111list_options = [
114- field_option ,
115- exclude_field_option ,
116- pulp_option ( "--repository-version" ),
117- pulp_option ( "--arch" , allowed_with_contexts = ( PulpRpmPackageContext ,) ),
112+ pulp_option (
113+ "--arch" ,
114+ allowed_with_contexts = ( PulpRpmPackageContext , PulpRpmModulemdContext ),
115+ ),
118116 pulp_option (
119117 "--arch-contains" ,
120118 "arch__contains" ,
@@ -125,7 +123,7 @@ def content() -> None:
125123 "--arch-in" ,
126124 "arch__in" ,
127125 multiple = True ,
128- allowed_with_contexts = (PulpRpmPackageContext ,),
126+ allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext ),
129127 needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
130128 ),
131129 pulp_option ("--arch-ne" , "arch__ne" , allowed_with_contexts = (PulpRpmPackageContext ,)),
@@ -135,11 +133,41 @@ def content() -> None:
135133 allowed_with_contexts = (PulpRpmPackageContext ,),
136134 needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
137135 ),
136+ pulp_option (
137+ "--checksum-type" ,
138+ "checksum_type" ,
139+ allowed_with_contexts = (PulpRpmPackageContext ,),
140+ ),
141+ pulp_option (
142+ "--checksum-type-in" ,
143+ "checksum_type__in" ,
144+ multiple = True ,
145+ allowed_with_contexts = (PulpRpmPackageContext ,),
146+ ),
147+ pulp_option (
148+ "--checksum-type-ne" ,
149+ "checksum_type__ne" ,
150+ allowed_with_contexts = (PulpRpmPackageContext ,),
151+ ),
152+ pulp_option (
153+ "--context" ,
154+ allowed_with_contexts = (PulpRpmModulemdContext ,),
155+ ),
156+ pulp_option (
157+ "--context-in" ,
158+ "context__in" ,
159+ multiple = True ,
160+ allowed_with_contexts = (PulpRpmModulemdContext ,),
161+ ),
138162 pulp_option ("--epoch" , allowed_with_contexts = (PulpRpmPackageContext ,)),
139163 pulp_option (
140164 "--epoch-in" , "epoch__in" , multiple = True , allowed_with_contexts = (PulpRpmPackageContext ,)
141165 ),
142166 pulp_option ("--epoch-ne" , "epoch__ne" , allowed_with_contexts = (PulpRpmPackageContext ,)),
167+ pulp_option (
168+ "--filename" ,
169+ allowed_with_contexts = (PulpRpmPackageContext ,),
170+ ),
143171 pulp_option ("--id" , allowed_with_contexts = (PulpRpmAdvisoryContext ,)),
144172 pulp_option (
145173 "--id-in" , "id__in" , multiple = True , allowed_with_contexts = (PulpRpmAdvisoryContext ,)
@@ -155,7 +183,7 @@ def content() -> None:
155183 pulp_option (
156184 "--name-contains" ,
157185 "name__contains" ,
158- allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext ),
186+ allowed_with_contexts = (PulpRpmPackageContext ,),
159187 needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
160188 ),
161189 pulp_option (
@@ -167,12 +195,12 @@ def content() -> None:
167195 pulp_option (
168196 "--name-ne" ,
169197 "name__ne" ,
170- allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext ),
198+ allowed_with_contexts = (PulpRpmPackageContext ,),
171199 ),
172200 pulp_option (
173201 "--name-startswith" ,
174202 "name__startswith" ,
175- allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext ),
203+ allowed_with_contexts = (PulpRpmPackageContext ,),
176204 needs_plugins = [PluginRequirement ("rpm" , specifier = ">=3.20.0" )],
177205 ),
178206 pulp_option ("--package-href" , allowed_with_contexts = (PulpRpmPackageContext ,)),
@@ -238,12 +266,18 @@ def content() -> None:
238266 "--type-in" , "type__in" , multiple = True , allowed_with_contexts = (PulpRpmAdvisoryContext ,)
239267 ),
240268 pulp_option ("--type-ne" , "type__ne" , allowed_with_contexts = (PulpRpmAdvisoryContext ,)),
241- pulp_option ("--version" , allowed_with_contexts = (PulpRpmPackageContext ,)),
242269 pulp_option (
243- "--version-in" , "version__in" , multiple = True , allowed_with_contexts = (PulpRpmPackageContext ,)
270+ "--version" ,
271+ allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext ),
272+ ),
273+ pulp_option (
274+ "--version-in" ,
275+ "version__in" ,
276+ multiple = True ,
277+ allowed_with_contexts = (PulpRpmPackageContext , PulpRpmModulemdContext ),
244278 ),
245279 pulp_option ("--version-ne" , "version__ne" , allowed_with_contexts = (PulpRpmPackageContext ,)),
246- label_select_option ,
280+ * content_filter_options ,
247281]
248282lookup_options = [
249283 href_option ,
0 commit comments