mirror of
https://github.com/anthropics/claude-code.git
synced 2026-10-31 07:53:02 +08:00
15 lines
335 B
TypeScript
15 lines
335 B
TypeScript
import type { ProcessRunResult } from 'claude-code'
|
|
|
|
/**
|
|
* A scripted git answer that exited 0 with the given output, nothing on
|
|
* stderr.
|
|
*
|
|
* @param stdout what the command printed; nothing by default
|
|
* @returns the run result
|
|
*/
|
|
export const ok = (stdout = ''): ProcessRunResult => ({
|
|
exitCode: 0,
|
|
stdout,
|
|
stderr: '',
|
|
})
|