We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ba03c7 commit 02a5bcbCopy full SHA for 02a5bcb
nettacker/nettacker/core/markdown_report.py
@@ -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