We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435d230 commit 53d24a9Copy full SHA for 53d24a9
README.md
@@ -1,3 +1,19 @@
1
# SwiftFormatterPlugin
2
3
-A description of this package.
+A Swift Package Manager plugin which runs [SwiftFormat](https://github.com/nicklockwood/SwiftFormat).
4
+
5
+## Usage
6
7
+Add this repo to your package dependencies:
8
9
+```Swift
10
+ dependencies: [
11
+ .package(url: "https://github.com/elegantchaos/SwiftFormatterPlugin", from: "1.0.2"),
12
+ /* other dependencies here... */
13
+ ],
14
+```
15
16
+Invoke the tool from the command line:
17
18
+`swift package plugin --allow-writing-to-package-directory format-source-code`
19
0 commit comments