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 / diff-at.ts
15 lines · 419 BRaw
1import type { CommandRunInput } from 'claude-code'
2
3import { DIFF } from './diff.js'
4
5/**
6 * The command typed under the fullscreen layout on a terminal so many
7 * columns wide, as its presentation tells the hooks.
8 *
9 * @param columns the terminal's width
10 * @returns the command's input
11 */
12export const diffAt = (columns: number): CommandRunInput => ({
13 ...DIFF,
14 presentation: { isFullscreen: true, columns },
15})