feat(cli): add ccam lanes ci status
This commit is contained in:
+5
-1
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user