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

Method get_script_output

src/model/parameter_config.py:533–540  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

531 shell = read_bool_from_config('shell', default_config, default=is_empty(template_property.required_parameters))
532
533 def get_script_output(script):
534 output = process_invoker.invoke(script, working_dir, shell=shell)
535 stripped_output = output.strip()
536
537 if type == PARAM_TYPE_MULTISELECT and '\n' in stripped_output:
538 return [line.strip() for line in stripped_output.split('\n') if not is_empty(line)]
539
540 return stripped_output
541
542 if not template_property.required_parameters:
543 self._default = get_script_output(resolved_string_value)

Callers

nothing calls this directly

Calls 2

is_emptyFunction · 0.90
invokeMethod · 0.80

Tested by

no test coverage detected