aspect-cli
aspect-cli copied to clipboard
do something useful for `aspect build` or `aspect test`
Bazel's behavior is pretty dumb
alexeagle@system76-pc:~/Projects/aspect-cli$ bazel build
WARNING: Usage: bazel build <options> <targets>.
Invoke `bazel help build` for full description of usage and options.
Your request is correct, but requested an empty set of targets. Nothing will be built.
INFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 targets...
INFO: Elapsed time: 0.079s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
alexeagle@system76-pc:~/Projects/aspect-cli$ bazel test
INFO: Build option --test_env has changed, discarding analysis cache.
INFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 test targets...
INFO: Elapsed time: 0.124s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
Proposal
When interactive:
bazel build
prompts
what would you like to build? all targets in current folder /path/to (this is the workspace-relative path you're in) all targets beneath current folder specific target patterns
if you choose target patterns, we help you select them
and then prompts
remember this for next time?