MCPcopy
hub / github.com/pirxthepilot/wtfis / print

Method print

wtfis/ui/view.py:209–226  ·  view source on GitHub ↗
(self, one_column: bool = False)

Source from the content-addressed store, hash-verified

207 return None
208
209 def print(self, one_column: bool = False) -> None:
210 renderables = [
211 i
212 for i in (
213 self.ip_panel(),
214 self.whois_panel(),
215 )
216 if i is not None
217 ]
218
219 if len(renderables) == 0:
220 self.console.print(generate_notice("No data was found"))
221 return
222
223 if one_column:
224 self.console.print(Group(*([""] + renderables))) # type: ignore
225 else:
226 self.console.print(Padding(Columns(renderables), (1, 0)))

Callers

nothing calls this directly

Calls 4

ip_panelMethod · 0.95
generate_noticeFunction · 0.90
whois_panelMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected