tsquery is a CLI for executing Tree-sitter queries on source code files.
It uses enry to detect a language and apply the right Tree-sitter parser.
The default output includes a list of line number locations where there's a query match, followed by a snippet of the matching code.