File size: 335 Bytes
7f0ec95
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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: '',
})