MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / handleImageCommand

Function handleImageCommand

cli/src/commands/image.ts:12–20  ·  view source on GitHub ↗
(args: string)

Source from the content-addressed store, hash-verified

10 * Errors are shown in the pending images banner with auto-remove.
11 */
12export async function handleImageCommand(args: string): Promise<string> {
13 const [imagePath, ...rest] = args.trim().split(/\s+/)
14
15 if (imagePath) {
16 await validateAndAddImage(imagePath, getProjectRoot())
17 }
18
19 return rest.join(' ')
20}

Callers 1

Calls 2

validateAndAddImageFunction · 0.90
getProjectRootFunction · 0.90

Tested by

no test coverage detected