MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / get_input_data

Method get_input_data

tools/shell/test/conftest.py:94–100  ·  view source on GitHub ↗
(self, cmd: str)

Source from the content-addressed store, hash-verified

92 return command
93
94 def get_input_data(self, cmd: str):
95 if self.input:
96 with open(self.input, "rb") as f:
97 input_data = f.read()
98 else:
99 input_data = bytearray(cmd, "utf8")
100 return input_data
101
102 def get_output_pipe(self):
103 output_pipe = subprocess.PIPE

Callers 1

runMethod · 0.95

Calls 1

readMethod · 0.45

Tested by

no test coverage detected