mirror of
https://github.com/doum1004/llmwiki-cli.git
synced 2026-04-29 23:46:10 +02:00
feat: add Git author and committer environment variables to runWiki function
This commit is contained in:
@@ -16,7 +16,14 @@ async function runWiki(args: string[], input?: string): Promise<{ stdout: string
|
||||
stdout: "pipe",
|
||||
stderr: "pipe",
|
||||
stdin: input ? new Blob([input]) : undefined,
|
||||
env: { ...process.env, LLMWIKI_CONFIG_DIR: configDir },
|
||||
env: {
|
||||
...process.env,
|
||||
LLMWIKI_CONFIG_DIR: configDir,
|
||||
GIT_AUTHOR_NAME: "Test",
|
||||
GIT_AUTHOR_EMAIL: "test@test.com",
|
||||
GIT_COMMITTER_NAME: "Test",
|
||||
GIT_COMMITTER_EMAIL: "test@test.com",
|
||||
},
|
||||
},
|
||||
);
|
||||
const exitCode = await proc.exited;
|
||||
|
||||
Reference in New Issue
Block a user