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
408 B
Raw Blame
import type Types from '../../types'
import { isWholeListing } from '../is-whole-listing'

/**
 * Whether a `-z` git child both succeeded and answered a whole listing,
 * so its stdout may be parsed (isWholeListing).
 *
 * @param result what the child left
 * @returns whether to parse it
 */
export const isWholeAnswer = (result: Types.RunResult) =>
  result.exitCode === 0 && isWholeListing(result.stdout)