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

Method __init__

src/config/script/list_values.py:45–48  ·  view source on GitHub ↗
(self, script, shell, process_invoker: ProcessInvoker)

Source from the content-addressed store, hash-verified

43class ScriptValuesProvider(ValuesProvider):
44
45 def __init__(self, script, shell, process_invoker: ProcessInvoker) -> None:
46 script_output = process_invoker.invoke(script, shell=shell)
47 script_output = script_output.rstrip('\n')
48 self._values = [line for line in script_output.split('\n') if not is_empty(line)]
49
50 def get_values(self, parameter_values):
51 return self._values

Callers

nothing calls this directly

Calls 2

is_emptyFunction · 0.90
invokeMethod · 0.80

Tested by

no test coverage detected