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
- Document settings for Linux users.
- Document how to specify the SwiftFormat version.
- Document how to generate the declaration for a SwiftFormat version.
Closes#88.
The [`swiftformat_pkg`](/doc/rules_and_macros_overview.md#swiftformat_pkg) macro defines targets for
@@ -136,22 +138,93 @@ $ bazel run //:update_all
136
138
$ bazel test //...
137
139
```
138
140
139
-
## Specifying the Version of SwiftFormat
141
+
## Specifying the SwiftFormat Version
140
142
141
-
By default, `rules_swiftformat` will load the [latest release of
143
+
By default, `rules_swiftformat` will load a [recent release of
142
144
SwiftFormat](https://github.com/nicklockwood/SwiftFormat/releases). This works well for most cases.
143
-
However, if you would like to specify the SwiftFormat release, you can do so by passing the version
144
-
to the [`swiftformat_load_package`](/doc/repository_rules_overview.md#swiftformat_load_package) function in your `WORKSPACE`.
145
+
However, if you would like to specify the SwiftFormat release, you can do so by specifying the
146
+
assets to download when calling [`swiftformat_register_prebuilt_toolchains`](/doc/repository_rules_overview.md#swiftformat_register_prebuilt_toolchains) function in your `WORKSPACE`.
| <aid="swiftformat_register_prebuilt_toolchains-name"></a>name | Optional. The name for the toolchains repository as a <code>string</code>. | <code>"swiftformat_prebuilt_toolchains"</code> |
130
+
| <aid="swiftformat_register_prebuilt_toolchains-assets"></a>assets | Optional. A <code>list</code> of tools to register. If not specified, it uses a recent version of SwiftFormat. | <code>None</code> |
131
+
| <aid="swiftformat_register_prebuilt_toolchains-register_toolchains"></a>register_toolchains | Optional. A <code>bool</code> that determines whether this function should call <code>register_toolchains()</code>. | <code>True</code> |
0 commit comments