MCPcopy Index your code
hub / github.com/archlinux/archinstall / peak

Method peak

archinstall/lib/command.py:149–162  ·  view source on GitHub ↗
(self, output: str | bytes)

Source from the content-addressed store, hash-verified

147 self._trace_log_pos = min(max(0, pos), len(self._trace_log))
148
149 def peak(self, output: str | bytes) -> bool:
150 if self.peek_output:
151 if isinstance(output, bytes):
152 try:
153 output = output.decode('UTF-8')
154 except UnicodeDecodeError:
155 return False
156
157 _cmd_output(output)
158
159 sys.stdout.write(output)
160 sys.stdout.flush()
161
162 return True
163
164 def poll(self) -> None:
165 self.make_sure_we_are_executing()

Callers 1

pollMethod · 0.95

Calls 3

_cmd_outputFunction · 0.85
decodeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected