Skip to content

Commit 02a5bcb

Browse files
feat: add markdown report generation support
1 parent 4ba03c7 commit 02a5bcb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
def generate_markdown_report(results, output_file="output.md"):
2+
"""
3+
Generate a simple markdown report from scan results.
4+
"""
5+
try:
6+
with open(output_file, "w", encoding="utf-8") as f:
7+
f.write("# Nettacker Scan Report\n\n")
8+
9+
if not results:
10+
f.write("No results found.\n")
11+
return
12+
13+
for item in results:
14+
f.write(f"- {str(item)}\n")
15+
16+
except Exception as e:
17+
print(f"Error generating markdown report: {e}")

0 commit comments

Comments
 (0)