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

Function run

src/clawsweeper.ts:1971–1983  ·  view source on GitHub ↗
(
  command: string,
  args: string[],
  options: { cwd?: string; env?: NodeJS.ProcessEnv } = {},
)

Source from the content-addressed store, hash-verified

1969}
1970
1971function run(
1972 command: string,
1973 args: string[],
1974 options: { cwd?: string; env?: NodeJS.ProcessEnv } = {},
1975): string {
1976 return runText(command, args, {
1977 cwd: options.cwd ?? ROOT,
1978 env: options.env,
1979 maxBuffer: 128 * 1024 * 1024,
1980 stdio: ["ignore", "pipe", "pipe"],
1981 trim: "both",
1982 });
1983}
1984
1985function gh(args: string[]): string {
1986 if (args[0] === "api") return run("gh", args);

Callers 15

ghFunction · 0.70
ghRawWithRetryFunction · 0.70
gitInfoFunction · 0.70
reviewTargetBranchFunction · 0.70
openclawDirtyStatusFunction · 0.70
currentHeadFunction · 0.50
rebaseOntoBaseFunction · 0.50
completeRebaseIfResolvedFunction · 0.50
hasRebaseInProgressFunction · 0.50
gitFetchFunction · 0.50
gitChangedFilesFunction · 0.50

Calls 1

runTextFunction · 0.85

Tested by

no test coverage detected