Skip to content

Instantly share code, notes, and snippets.

@nictuku
Last active March 10, 2018 05:55
#!/bin/bash
test () {
bazel test :all
}
build () {
bazel build :all
}
query() {
bazel query :all | grep deploy.apply | sed -e 's/_deploy.apply//g'
}
deploy() {
bazel run --experimental_platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 $(bazel query \
--noshow_progress \
"filter('_deploy.apply$', ':all')")
}
run() {
bazel run $(bazel query \
--noshow_progress \
"filter('_image.binary$', ':all')")
}
describe() {
bazel run $(bazel query \
--noshow_progress \
"filter('_deploy.describe$', ':all')")
}
$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment