Skip to content

kastiglione/bqcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Bazel Query CLI Tool

This is a small tool, bq, which adds conveniences to using bazel query from the command line. The first feature is it adds a pipe | operator to allow building up queries left to right.

For example, this query determines all tests belonging to any iOS app that depends on the Modules/BusinessTime module.

tests(siblings(deps(kind(ios_application, rdeps('Modules/...', 'Modules/BusinessTime')))))

Here's the equivalent query written using a | operator:

rdeps('Modules/...', 'Modules/BusinessTime') | kind(ios_application) | deps | siblings | tests

Limitations

Bazel query expressions are parsed as Python. Bazel query syntax is not a subset of Python, so it's possible to write queries that bq does not handle.

Version

0.0000000000000000001

Releases

No releases published

Packages

No packages published

Languages