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

Method __init__

archinstall/lib/command.py:228–243  ·  view source on GitHub ↗
(
		self,
		cmd: str | list[str],
		peek_output: bool | None = False,
		environment_vars: dict[str, str] | None = None,
		working_directory: str = './',
		remove_vt100_escape_codes_from_lines: bool = True,
	)

Source from the content-addressed store, hash-verified

226
227class SysCommand:
228 def __init__(
229 self,
230 cmd: str | list[str],
231 peek_output: bool | None = False,
232 environment_vars: dict[str, str] | None = None,
233 working_directory: str = './',
234 remove_vt100_escape_codes_from_lines: bool = True,
235 ):
236 self.cmd = cmd
237 self.peek_output = peek_output
238 self.environment_vars = environment_vars
239 self.working_directory = working_directory
240 self.remove_vt100_escape_codes_from_lines = remove_vt100_escape_codes_from_lines
241
242 self.session: SysCommandWorker | None = None
243 self.create_session()
244
245 def __enter__(self) -> SysCommandWorker | None:
246 return self.session

Callers

nothing calls this directly

Calls 1

create_sessionMethod · 0.95

Tested by

no test coverage detected