Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional JSON output to the search binary #69

Open
neongreen opened this issue Nov 12, 2018 · 1 comment
Open

Add optional JSON output to the search binary #69

neongreen opened this issue Nov 12, 2018 · 1 comment

Comments

@neongreen
Copy link

It'd be rather useful if zoekt accepted a -json switch that would instruct it to output search results in a machine-readable format looking roughly like this:

[
    {
	"FileName": "repo/file.txt",
         "Repository": "repo",
         "LineMatches": [...], // array of objects
         ...
         ]
    },
    ...
]

Would you accept a PR to this effect?

@hanwen
Copy link
Contributor

hanwen commented Nov 12, 2018

sure. Look at CONTRIBUTING for instructions on sending code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants