From 0475dd27bad1e72f8ab3f4a579e5aea73c3fd7ff Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Sun, 26 Feb 2023 20:49:40 -0800 Subject: [PATCH] fix: add coverage, run & test commands to list of commands that expect labels --- pkg/bazel/bazel_flags.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/bazel/bazel_flags.go b/pkg/bazel/bazel_flags.go index abf3eddde..8daa4670f 100644 --- a/pkg/bazel/bazel_flags.go +++ b/pkg/bazel/bazel_flags.go @@ -74,7 +74,7 @@ var ( // List of all commands with label as inputs. To compile the list, you can // use the following command: // - // bazel help completion | grep 'ARGUMENT="label"' + // bazel help completion | grep 'ARGUMENT="label' // // In theory, we could make a query everytime we execute the completion. // However, this introduces unnecessary overhead because the commands are @@ -82,11 +82,14 @@ var ( commandsWithLabelInput = map[string]struct{}{ "aquery": {}, "build": {}, + "coverage": {}, "cquery": {}, "fetch": {}, "mobile-install": {}, "print-action": {}, "query": {}, + "run": {}, + "test": {}, } bazelFlagSets = map[string]*pflag.FlagSet{}