delta icon indicating copy to clipboard operation
delta copied to clipboard

🚀 Handle sourcegraph output, similarly to ripgrep and git grep

Open dandavison opened this issue 4 years ago • 0 comments

Sourcegraph has a CLI tool https://github.com/sourcegraph/src-cli. It can produce JSON output (and can also be used to submit GraphQL queries directly). An output format reminiscent of rg --json can be produced using jq:

src search --json my-pattern | jq -c ".Results[]"

dandavison avatar Dec 19 '21 00:12 dandavison