Skip to content

enhancement: add --json flag to search command #90

@carlos-alm

Description

@carlos-alm

Found during dogfooding v2.3.0

Severity: Low (feature gap)
Command: codegraph search

Description

All query commands (query, fn, fn-impact, context, explain, where, map, stats, hotspots, structure, diff-impact) support -j/--json for machine-readable output, but search does not.

Running codegraph search "query" -j returns error: unknown option '-j'.

Expected behavior

search --json should output JSON with an array of results including name, kind, file, line, and similarity score.

Use case

Piping search results to other tools or scripts for automated workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions