spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / tests / fixtures / scripted / ok.ts
14 lines · 335 BRaw
1import type { ProcessRunResult } from 'claude-code'
2
3/**
4 * A scripted git answer that exited 0 with the given output, nothing on
5 * stderr.
6 *
7 * @param stdout what the command printed; nothing by default
8 * @returns the run result
9 */
10export const ok = (stdout = ''): ProcessRunResult => ({
11 exitCode: 0,
12 stdout,
13 stderr: '',
14})