Skip to content

Commit f4a8115

Browse files
Fix cache warming example (#3166)
Signed-off-by: Brentley Jones <[email protected]>
1 parent b579b6c commit f4a8115

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

docs/usage.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
- [Bazel aspects](#bazel-aspects)
22
- [`compile_only_aspect`](#compile_only_aspect)
33
- [Bazel configs](#bazel-configs)
4-
- [`rules_xcodeproj`](#rules_xcodeproj)
5-
- [`rules_xcodeproj_generator`](#rules_xcodeproj_generator)
6-
- [`rules_xcodeproj_indexbuild`](#rules_xcodeproj_indexbuild)
7-
- [`rules_xcodeproj_swiftuipreviews`](#rules_xcodeproj_swiftuipreviews)
4+
- [`rules_xcodeproj`](#rules_xcodeproj)
5+
- [`rules_xcodeproj_generator`](#rules_xcodeproj_generator)
6+
- [`rules_xcodeproj_indexbuild`](#rules_xcodeproj_indexbuild)
7+
- [`rules_xcodeproj_swiftuipreviews`](#rules_xcodeproj_swiftuipreviews)
88
- [Project-level configs](#project-level-configs)
99
- [Extra config flags](#extra-config-flags)
1010
- [`.bazelrc` files](#bazelrc-files)
11+
- [Project `xcodeproj.bazelrc`](#project-xcodeprojbazelrc)
12+
- [Workspace `xcodeproj.bazelrc`](#workspace-xcodeprojbazelrc)
13+
- [Workspace `.bazelrc`](#workspace-bazelrc)
14+
- [Project `xcodeproj_extra_flags.bazelrc`](#project-xcodeproj_extra_flagsbazelrc)
1115
- [Command-line API](#command-line-api)
1216
- [Commands](#commands)
17+
- [`build`](#build)
18+
- [`clean`](#clean)
19+
- [`query`/`cquery`/`aquery`](#querycqueryaquery)
1320
- [Options](#options)
21+
- [`-v`/`--verbose`](#-v--verbose)
22+
- [`--config`](#--config)
23+
- [`--generator_output_groups`](#--generator_output_groups)
24+
- [`--download_intermediates`](#--download_intermediates)
1425
- [Substitutions](#substitutions)
1526

1627
# Bazel aspects
@@ -28,24 +39,23 @@ To use the aspect, you apply it at the command line:
2839
```
2940
bazel build //some:target \
3041
--aspects=@rules_xcodeproj//xcodeproj:compile_only_aspect.bzl%compile_only_aspect \
31-
--output_groups=compile_only
42+
--output_groups=compiles
3243
```
3344

3445
You can also create a Bazel configuration in a `.bazelrc` file to reuse the
3546
aspect easily:
3647

3748
```
3849
common:compile_only --aspects=@rules_xcodeproj//xcodeproj:compile_only_aspect.bzl%compile_only_aspect
39-
common:compile_only --output_groups=compile_only
50+
common:compile_only --output_groups=compiles
4051
```
4152

4253
And use it, for example, with the command-line API:
4354

4455
```
4556
bazel run //label/to:xcodeproj \
4657
-- \
47-
--generator_output_groups=all_targets \
48-
'build --config=compile_only --remote_download_minimal'
58+
'build --config=compile_only --remote_download_minimal $_GENERATOR_LABEL_'
4959
```
5060

5161
# Bazel configs

0 commit comments

Comments
 (0)