Skip to content

Commit 40c9035

Browse files
fix: use json
1 parent 16c91cc commit 40c9035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def find_code(
1919

2020
def run_ast_grep_command(pattern: str, project_folder: str, language: Optional[str]) -> List[dict[str, Any]]:
2121
try:
22-
args = ["ast-grep", "--pattern", pattern, project_folder]
22+
args = ["ast-grep", "--pattern", pattern, "--json", project_folder]
2323
if language:
2424
args.extend(["--lang", language])
2525
# Run command and capture output

0 commit comments

Comments
 (0)