MCPcopy
hub / github.com/openclaw/clawsweeper / ghText

Function ghText

src/repair/github-cli.ts:141–151  ·  view source on GitHub ↗
(ghArgs: string[], options: GhRunOptions = {})

Source from the content-addressed store, hash-verified

139}
140
141export function ghText(ghArgs: string[], options: GhRunOptions = {}): string {
142 const text = execFileSync("gh", ghArgs, {
143 cwd: options.cwd ?? repoRoot(),
144 env: ghEnv(options.env),
145 encoding: "utf8",
146 input: options.input,
147 maxBuffer: 64 * 1024 * 1024,
148 stdio: ["ignore", "pipe", "pipe"],
149 });
150 return stripAnsi(text).trim();
151}
152
153export function ghTextWithRetry(ghArgs: string[], options: GhRetryOptions | number = {}): string {
154 const resolved = resolveRetryOptions(options);

Callers 15

postSelfHealStatusFunction · 0.85
mainFunction · 0.85
ghJsonFunction · 0.85
ghTextWithRetryFunction · 0.85
ghTextAsyncFunction · 0.85
ghBestEffortFunction · 0.85
readReportFunction · 0.85
fetchLatestMainFunction · 0.85
updateCommandStatusFunction · 0.85
dispatchRepairFunction · 0.85
setGateFunction · 0.85

Calls 3

ghEnvFunction · 0.85
repoRootFunction · 0.70
stripAnsiFunction · 0.70

Tested by

no test coverage detected