mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Add GitHub token environment variable support and improve git operations
This commit is contained in:
1 parent
025b2990ed
commit
af0dcac7c8
11 files changed
+125
-21
No files matched your search
@@ -4,6 +4,7 @@ import { logger } from './logger'
|
||||
interface ExecuteCommandOptions {
|
||||
cwd?: string
|
||||
silent?: boolean
|
||||
env?: Record<string, string>
|
||||
}
|
||||
|
||||
export async function executeCommand(
|
||||
@@ -19,7 +20,8 @@ export async function executeCommand(
|
||||
|
||||
const proc: ChildProcess = spawn(command || '', cmdArgs, {
|
||||
cwd: options.cwd,
|
||||
shell: false
|
||||
shell: false,
|
||||
env: { ...process.env, ...options.env }
|
||||
})
|
||||
|
||||
let stdout = ''
|
||||
|
||||
Reference in new issue
Block a user