Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
335 B
Raw Blame
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: '',
})