MCPcopy Index your code
hub / github.com/bugy/script-server / write_to_input

Method write_to_input

src/execution/process_popen.py:48–59  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

46 errors='replace')
47
48 def write_to_input(self, value):
49 if self.is_finished():
50 return
51
52 input_value = value
53 if not value.endswith("\n"):
54 input_value += "\n"
55
56 self._write_script_output(input_value)
57
58 self.process.stdin.write(input_value)
59 self.process.stdin.flush()
60
61 def wait_finish(self):
62 self.process.wait()

Callers

nothing calls this directly

Calls 3

_write_script_outputMethod · 0.80
is_finishedMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected