feat(cli): add ccam lanes ci status

This commit is contained in:
2026-08-25 09:33:26 +07:00
parent db9b1fcafa
commit a2fcd9bafc
3 changed files with 121 additions and 3 deletions
+5 -1
View File
@@ -23,7 +23,11 @@ const execFileAsync = promisify(execFile);
*/
async function gh(cwd, args) {
try {
const result = await execFileAsync("gh", args, { cwd, maxBuffer: 8 * 1024 * 1024 });
const result = await execFileAsync("gh", args, {
cwd,
env: process.env,
maxBuffer: 8 * 1024 * 1024,
});
return { stdout: result.stdout, stderr: result.stderr };
} catch (err) {
const error = new Error(`gh ${args[0]} failed`);