MCPcopy Create free account
hub / github.com/conda/constructor / read_text

Method read_text

tests/test_examples.py:392–410  ·  view source on GitHub ↗
(self, last_digits: int = -15000)

Source from the content-addressed store, hash-verified

390 post_install_log: Path | None = None
391
392 def read_text(self, last_digits: int = -15000) -> str:
393 parts = [
394 f"Command: {self.cmd}",
395 f"Return code: {self.returncode}",
396 ]
397
398 if self.post_install_log:
399 parts.append(
400 f"\n=== MSI LOG POST INSTALL: {self.post_install_log} ===\n"
401 + _read_briefcase_log_tail(self.post_install_log, last_digits)
402 )
403
404 if self.msi_log:
405 parts.append(
406 f"\n=== MSI LOG: {self.msi_log} ===\n"
407 + _read_briefcase_log_tail(self.msi_log, last_digits)
408 )
409
410 return "\n".join(parts)
411
412
413@dataclass

Callers 15

generate_dockerfileFunction · 0.45
dump_licensesFunction · 0.45
verifyFunction · 0.45
_build_messageMethod · 0.45
get_licenseFunction · 0.45
render_templatesMethod · 0.45
_read_briefcase_log_tailFunction · 0.45

Calls 1

_read_briefcase_log_tailFunction · 0.85

Tested by

no test coverage detected