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

Method _read_file

archinstall/lib/args.py:786–791  ·  view source on GitHub ↗
(self, path: Path)

Source from the content-addressed store, hash-verified

784 return Path(tmp_file.name)
785
786 def _read_file(self, path: Path) -> str:
787 if not path.exists():
788 error(f'Could not find file {path}')
789 sys.exit(1)
790
791 return path.read_text()
792
793 def _cleanup_config(self, config: Namespace | dict[str, Any]) -> dict[str, Any]:
794 clean_args = {}

Callers 1

_parse_configMethod · 0.95

Calls 3

errorFunction · 0.90
exitMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected