@@ -58,12 +58,16 @@ Open `bazel-diff-example.sh` to see how this is implemented. This is purely an e
58
58
59
59
` bazel-diff ` Command
60
60
~~~
61
- Usage: bazel-diff [-htV] -b=<bazelPath> [-fh=<finalHashesJSONPath>]
62
- [-o=<outputPath>] [-sh=<startingHashesJSONPath>]
61
+ Usage: bazel-diff [-htV] -b=<bazelPath> [-co=<bazelCommandOptions>]
62
+ [-fh=<finalHashesJSONPath>] [-o=<outputPath>]
63
+ [-sh=<startingHashesJSONPath>] [-so=<bazelStartupOptions>]
63
64
-w=<workspacePath> [COMMAND]
64
65
Writes to a file the impacted targets between two Bazel graph JSON files
65
66
-b, --bazelPath=<bazelPath>
66
67
Path to Bazel binary
68
+ -co, --bazelCommandOptions=<bazelCommandOptions>
69
+ Additional space separated Bazel command options used when
70
+ invoking Bazel
67
71
-fh, --finalHashes=<finalHashesJSONPath>
68
72
The path to the JSON file of target hashes for the final
69
73
revision. Run 'generate-hashes' to get this value.
@@ -74,6 +78,9 @@ Writes to a file the impacted targets between two Bazel graph JSON files
74
78
-sh, --startingHashes=<startingHashesJSONPath>
75
79
The path to the JSON file of target hashes for the initial
76
80
revision. Run 'generate-hashes' to get this value.
81
+ -so, --bazelStartupOptions=<bazelStartupOptions>
82
+ Additional space separated Bazel client startup options used
83
+ when invoking Bazel
77
84
-t, --tests Return only targets of kind 'test')
78
85
-V, --version Print version information and exit.
79
86
-w, --workspacePath=<workspacePath>
@@ -82,37 +89,54 @@ Writes to a file the impacted targets between two Bazel graph JSON files
82
89
83
90
` modified-filepaths ` Command
84
91
~~~
85
- Usage: bazel-diff modified-filepaths [-hV] -b=<bazelPath> -w=<workspacePath>
86
- <startingGitRevision> <endingGitRevision>
87
- <outputPath>
92
+ Usage: bazel-diff modified-filepaths [-hV] -b=<bazelPath>
93
+ [-co=<bazelCommandOptions>]
94
+ [-so=<bazelStartupOptions>]
95
+ -w=<workspacePath> <startingGitRevision>
96
+ <endingGitRevision> <outputPath>
88
97
Writes to the file the modified filepaths between two revisions.
89
98
<startingGitRevision> The starting Git revision, e.g. "HEAD^"
90
99
<endingGitRevision> The final Git revision, e.g. "HEAD"
91
100
<outputPath> Path that the list of modified files will be
92
101
written to
93
102
-b, --bazelPath=<bazelPath>
94
103
Path to Bazel binary
104
+ -co, --bazelCommandOptions=<bazelCommandOptions>
105
+ Additional space separated Bazel command options
106
+ used when invoking Bazel
95
107
-h, --help Show this help message and exit.
108
+ -so, --bazelStartupOptions=<bazelStartupOptions>
109
+ Additional space separated Bazel client startup
110
+ options used when invoking Bazel
96
111
-V, --version Print version information and exit.
97
112
-w, --workspacePath=<workspacePath>
98
113
Path to Bazel workspace directory.
99
114
~~~
100
115
101
116
` generate-hashes ` Command
102
117
~~~
103
- Usage: bazel-diff generate-hashes [-hV] -b=<bazelPath> [-m=<modifiedFilepaths>]
118
+ Usage: bazel-diff generate-hashes [-hV] -b=<bazelPath>
119
+ [-co=<bazelCommandOptions>]
120
+ [-m=<modifiedFilepaths>]
121
+ [-so=<bazelStartupOptions>]
104
122
-w=<workspacePath> <outputPath>
105
123
Writes to a file the SHA256 hashes for each Bazel Target in the provided
106
124
workspace.
107
125
<outputPath> The filepath to write the resulting JSON of dictionary
108
126
target => SHA-256 values
109
127
-b, --bazelPath=<bazelPath>
110
128
Path to Bazel binary
129
+ -co, --bazelCommandOptions=<bazelCommandOptions>
130
+ Additional space separated Bazel command options used when
131
+ invoking Bazel
111
132
-h, --help Show this help message and exit.
112
133
-m, --modifiedFilepaths=<modifiedFilepaths>
113
134
The path to a file containing the list of modified
114
135
filepaths in the workspace, you can use the
115
136
'modified-filepaths' command to get this list
137
+ -so, --bazelStartupOptions=<bazelStartupOptions>
138
+ Additional space separated Bazel client startup options
139
+ used when invoking Bazel
116
140
-V, --version Print version information and exit.
117
141
-w, --workspacePath=<workspacePath>
118
142
Path to Bazel workspace directory.
0 commit comments