MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _strip_marker

Method _strip_marker

tools/terminal.py:365–369  ·  view source on GitHub ↗
(raw_output: str, marker: str)

Source from the content-addressed store, hash-verified

363
364 @staticmethod
365 def _strip_marker(raw_output: str, marker: str) -> str:
366 if marker not in raw_output:
367 return raw_output.rstrip()
368 prefix, _, _ = raw_output.partition(marker)
369 return prefix.rstrip()
370
371 def _trim_output(self, command: str, output: str) -> str:
372 lines = output.splitlines()

Callers 1

_execute_sshMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected