cortexapps-cli 0.26.0__tar.gz → 0.26.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cortexapps-cli
3
- Version: 0.26.0
3
+ Version: 0.26.2
4
4
  Summary: Command Line Interface for cortexapps
5
5
  License: MIT
6
6
  Author: Cortex Apps
@@ -294,6 +294,15 @@ def add_argument_groups(subparser):
294
294
  metavar=''
295
295
  )
296
296
 
297
+ def add_argument_hierarchyDepth(subparser):
298
+ subparser.add_argument(
299
+ '-d',
300
+ '--hierarchy-depth',
301
+ help='Depth of the parent / children hierarchy nodes. Can be \'full\' or a valid integer',
302
+ default='full',
303
+ metavar=''
304
+ )
305
+
297
306
  def add_argument_id(subparser, help_text='The id of the CQL query'):
298
307
  subparser.add_argument(
299
308
  '-i',
@@ -324,6 +333,16 @@ def add_argument_includeDrafts(subparser, help_text='Include plugin drafts.'):
324
333
  action='store_true'
325
334
  )
326
335
 
336
+ def add_argument_includeHierarchyFields(subparser):
337
+ subparser.add_argument(
338
+ '-i',
339
+ '--includeHierarchyFields',
340
+ help='List of sub fields to include for hierarchies. Only supports \'groups\'',
341
+ required=False,
342
+ default=argparse.SUPPRESS,
343
+ metavar=''
344
+ )
345
+
327
346
  def add_argument_includeIncoming(subparser, help_text='Including incoming dependencies.'):
328
347
  subparser.add_argument(
329
348
  '-i',
@@ -1025,22 +1044,9 @@ def subparser_catalog_list(subparser):
1025
1044
  action='store_true',
1026
1045
  required=False
1027
1046
  )
1028
- sp.add_argument(
1029
- '-d',
1030
- '--hierarchy-depth',
1031
- help='Depth of the parent / children hierarchy nodes. Can be \'full\' or a valid integer',
1032
- default='full',
1033
- metavar=''
1034
- )
1047
+ add_argument_hierarchyDepth(sp)
1035
1048
  add_argument_groups(sp)
1036
- sp.add_argument(
1037
- '-i',
1038
- '--includeHierarchyFields',
1039
- help='List of sub fields to include for hierarchies. Only supports \'groups\'',
1040
- default=False,
1041
- action='store_true',
1042
- required=False
1043
- )
1049
+ add_argument_includeHierarchyFields(sp)
1044
1050
  sp.add_argument(
1045
1051
  '-in',
1046
1052
  '--includeNestedFields',
@@ -1123,14 +1129,8 @@ def catalog_descriptor(args):
1123
1129
 
1124
1130
  def subparser_catalog_details(subparser):
1125
1131
  sp = subparser.add_parser('details', help='Retrieve entity details')
1126
- sp.add_argument(
1127
- '-i',
1128
- '--includeHierarchyFields',
1129
- help='List of sub fields to include for hierarchies. Only supports \'groups\'',
1130
- default=argparse.SUPPRESS,
1131
- metavar=''
1132
- )
1133
- add_argument_groups(sp)
1132
+ add_argument_includeHierarchyFields(sp)
1133
+ add_argument_hierarchyDepth(sp)
1134
1134
  add_argument_tag(sp)
1135
1135
  sp.set_defaults(func=catalog_details)
1136
1136
 
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "cortexapps-cli"
3
3
  # version will be incremented via command line as part of github actions build
4
- version = "0.26.0"
4
+ version = "0.26.2"
5
5
  description = "Command Line Interface for cortexapps"
6
6
  license = "MIT"
7
7
  authors = [
File without changes