()
| 135 | set_global_report_state(report_state) |
| 136 | |
| 137 | def create_live_status() -> Panel: |
| 138 | status_text = Text() |
| 139 | status_text.append("Penetration test in progress", style="bold #22c55e") |
| 140 | status_text.append("\n\n") |
| 141 | |
| 142 | stats_text = build_live_stats_text(report_state) |
| 143 | if stats_text: |
| 144 | status_text.append(stats_text) |
| 145 | |
| 146 | return Panel( |
| 147 | status_text, |
| 148 | title="[bold white]STRIX", |
| 149 | title_align="left", |
| 150 | border_style="#22c55e", |
| 151 | padding=(1, 2), |
| 152 | ) |
| 153 | |
| 154 | try: |
| 155 | console.print() |
no test coverage detected