MCPcopy
hub / github.com/openai/plugins / write_command_script

Function write_command_script

plugins/ngs-analysis/scripts/ngs_planner_utils.py:50–57  ·  view source on GitHub ↗
(
    path: Path, commands: list[str], *, header: list[str] | None = None
)

Source from the content-addressed store, hash-verified

48
49
50def write_command_script(
51 path: Path, commands: list[str], *, header: list[str] | None = None
52) -> None:
53 lines = ["#!/usr/bin/env bash", "set -euo pipefail"]
54 if header:
55 lines.extend(header)
56 lines.extend(commands)
57 write_text(path, "\n".join(lines) + "\n")
58
59
60def command_plan_entry(

Callers 7

mainFunction · 0.90
write_outputsFunction · 0.90
write_outputsFunction · 0.90
write_outputsFunction · 0.90
write_outputsFunction · 0.90
write_outputsFunction · 0.90
write_outputsFunction · 0.90

Calls 2

write_textFunction · 0.90
extendMethod · 0.80

Tested by

no test coverage detected