(
command: string,
args: string[],
options: { cwd?: string; env?: NodeJS.ProcessEnv } = {},
)
| 1969 | } |
| 1970 | |
| 1971 | function 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 | |
| 1985 | function gh(args: string[]): string { |
| 1986 | if (args[0] === "api") return run("gh", args); |
no test coverage detected