-
-
Notifications
You must be signed in to change notification settings - Fork 323
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
📋 Task Description
Add support for JSON output format when running queries, enabling integration with other tools and scripts.
🎯 Acceptance Criteria
- Add
--output-formatoption with values:table(default),json - When
jsonis selected, output query results as valid JSON - JSON should be well-structured and parseable
- Works with the
exportcommand as well
🔗 Related Files/Components
- File:
codebase_rag/cli.py- add output format option - File:
codebase_rag/main.py- modify result display logic
📝 Additional Context
This enables:
- Piping results to
jqfor processing - Integration with other automation tools
- Programmatic access to query results
Example usage:
graph-code query "find all functions" --output-format json | jq '.functions[].name'Example JSON output:
{
"query": "find all functions",
"results": [
{"name": "process_file", "module": "parser.py", "line": 42},
{"name": "validate_input", "module": "utils.py", "line": 15}
],
"count": 2
}🚦 Priority
- High
- Medium
- Low
📊 Estimated Effort
- Small (< 2 hours)
- Medium (2-8 hours)
- Large (> 8 hours)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Projects
Status
No status