claude-code / mods /diff /tests /fixtures /diff-at.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
776286d verified
Raw
History Blame Contribute Delete
419 Bytes
import type { CommandRunInput } from 'claude-code'
import { DIFF } from './diff.js'
/**
* The command typed under the fullscreen layout on a terminal so many
* columns wide, as its presentation tells the hooks.
*
* @param columns the terminal's width
* @returns the command's input
*/
export const diffAt = (columns: number): CommandRunInput => ({
...DIFF,
presentation: { isFullscreen: true, columns },
})