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

Method write

archinstall/lib/command.py:125–133  ·  view source on GitHub ↗
(self, data: bytes, line_ending: bool = True)

Source from the content-addressed store, hash-verified

123 return False
124
125 def write(self, data: bytes, line_ending: bool = True) -> int:
126 assert isinstance(data, bytes) # TODO: Maybe we can support str as well and encode it
127
128 self.make_sure_we_are_executing()
129
130 if self.child_fd:
131 return os.write(self.child_fd, data + (b'\n' if line_ending else b''))
132
133 return 0
134
135 def make_sure_we_are_executing(self) -> bool:
136 if not self.started:

Callers 15

lvm_vol_createFunction · 0.95
eraseMethod · 0.95
_add_keyMethod · 0.95
fido2_enrollMethod · 0.95
installMethod · 0.45
_check_permissionsMethod · 0.45
logMethod · 0.45
set_mirrorsMethod · 0.45
genfstabMethod · 0.45
configure_nicMethod · 0.45
mkinitcpioMethod · 0.45

Calls 1

Tested by

no test coverage detected