Skip to content

Commit

Permalink
fix: add coverage, run & test commands to list of commands that expec…
Browse files Browse the repository at this point in the history
…t labels
  • Loading branch information
gregmagolan committed May 4, 2023
1 parent 8097207 commit 0475dd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/bazel/bazel_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,22 @@ 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
// rather static.
commandsWithLabelInput = map[string]struct{}{
"aquery": {},
"build": {},
"coverage": {},
"cquery": {},
"fetch": {},
"mobile-install": {},
"print-action": {},
"query": {},
"run": {},
"test": {},
}

bazelFlagSets = map[string]*pflag.FlagSet{}
Expand Down

0 comments on commit 0475dd2

Please sign in to comment.