MCPcopy Create free account
hub / github.com/cyberark/KubiScan / print_table_aligned_left

Function print_table_aligned_left

KubiScan.py:803–815  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

801 print_clusterrolebinding_rules(args.clusterrolebinding_rules)
802
803def print_table_aligned_left(table):
804 global json_filename
805 if json_filename != "":
806 export_to_json(table, json_filename)
807 global output_file
808 if no_color:
809 ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])')
810 for row in table._rows:
811 row[0] = ansi_escape.sub('', row[0])
812
813 table.align = 'l'
814 print(table)
815 print('\n')
816
817
818def export_to_json(table, json_filename):

Calls 1

export_to_jsonFunction · 0.85

Tested by

no test coverage detected