You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/bazel_diff/main.java
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,15 @@ public Integer call() {
153
153
versionProvider = VersionProvider.class
154
154
)
155
155
classBazelDiffimplementsCallable<Integer> {
156
+
@ArgGroup(exclusive = true)
157
+
Exclusiveexclusive;
158
+
staticclassExclusive {
159
+
@Option(names = {"-a", "--all-sourcefiles"}, description = "Experimental: Hash all sourcefile targets (instead of relying on --modifiedFilepaths), Warning: Performance may degrade from reading all source files")
160
+
BooleanhashAllSourcefiles;
161
+
162
+
@Option(names = {"-u", "--universeQuery"}, description = "The universe query to use when executing `rdeps()` queries, use this to limit the search scope of impacted targets i.e. ignore external targets and such")
@@ -169,9 +178,6 @@ class BazelDiff implements Callable<Integer> {
169
178
@Option(names = {"-o", "--output"}, scope = ScopeType.LOCAL, description = "Filepath to write the impacted Bazel targets to, newline separated")
170
179
FileoutputPath;
171
180
172
-
@Option(names = {"-a", "--all-sourcefiles"}, description = "Experimental: Hash all sourcefile targets (instead of relying on --modifiedFilepaths), Warning: Performance may degrade from reading all source files")
173
-
BooleanhashAllSourcefiles;
174
-
175
181
@Option(names = {"-aq", "--avoid-query"}, scope = ScopeType.LOCAL, description = "A Bazel query string, any targets that pass this query will be removed from the returned set of targets")
176
182
StringavoidQuery;
177
183
@@ -221,7 +227,16 @@ public Integer call() throws IOException {
0 commit comments