This commit is contained in:
William Ballenthin
2020-07-14 11:26:24 -06:00
parent 69669b3a00
commit af2d07d396

View File

@@ -48,7 +48,9 @@ def render_capabilities(doc, ostream):
rows.append((capability, rule["meta"]["namespace"]))
if rows:
ostream.write(tabulate.tabulate(rows, headers=[width("CAPABILITY", 50), width("NAMESPACE", 50)], tablefmt="psql"))
ostream.write(
tabulate.tabulate(rows, headers=[width("CAPABILITY", 50), width("NAMESPACE", 50)], tablefmt="psql")
)
ostream.write("\n")
else:
ostream.writeln(rutils.bold("no capabilities found"))
@@ -101,7 +103,9 @@ def render_attack(doc, ostream):
if rows:
ostream.write(
tabulate.tabulate(rows, headers=[width("ATT&CK Tactic", 20), width("ATT&CK Technique", 80)], tablefmt="psql")
tabulate.tabulate(
rows, headers=[width("ATT&CK Tactic", 20), width("ATT&CK Technique", 80)], tablefmt="psql"
)
)
ostream.write("\n")