MCPcopy
hub / github.com/guelfoweb/knockpy / _new_table

Function _new_table

knockpy/output.py:44–60  ·  view source on GitHub ↗
(
    *,
    title: Optional[str] = None,
    box_style: Any = box.SIMPLE,
    show_header: bool = True,
    header_style: Optional[str] = None,
)

Source from the content-addressed store, hash-verified

42
43
44def _new_table(
45 *,
46 title: Optional[str] = None,
47 box_style: Any = box.SIMPLE,
48 show_header: bool = True,
49 header_style: Optional[str] = None,
50) -> Table:
51 return Table(
52 title=title,
53 box=box_style,
54 show_header=show_header,
55 header_style=header_style,
56 title_justify="left",
57 width=_table_width(),
58 expand=False,
59 pad_edge=False,
60 )
61
62
63def _kv_value_width() -> int:

Callers 8

_print_verbose_checkFunction · 0.85
_print_dns_axfr_groupFunction · 0.85
_print_tls_handshakeFunction · 0.85
_print_redirect_tlsFunction · 0.85
outputFunction · 0.85
print_scan_statusFunction · 0.85
show_reports_catalogFunction · 0.85

Calls 1

_table_widthFunction · 0.85

Tested by

no test coverage detected