Skip to content

Commit dcbdea6

Browse files
committed
Update README.md
1 parent a37b553 commit dcbdea6

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,35 @@
1-
# swift-format-executable
1+
# swift-format-executable
2+
3+
The `swift-format-executable` repository provides a pre-built executable binary for [apple/swift-format](https://github.com/apple/swift-format) tool. This repository allows you to easily download and use `swift-format` in your CI/CD environments without the need to build it every time.
4+
5+
## Usage
6+
7+
### Download
8+
9+
To download the latest version of the `swift-format` binary, run the following command:
10+
11+
```
12+
curl -LO https://github.com/DevYeom/swift-format-executable/releases/latest/download/swift-format.zip
13+
```
14+
15+
To download a specific version of the `swift-format` binary, specify the version in the URL:
16+
17+
```
18+
curl -LO https://github.com/DevYeom/swift-format-executable/releases/download/510.1.0/swift-format.zip
19+
```
20+
21+
### Grant Execution Permission
22+
23+
After downloading, give execution permission to the binary:
24+
25+
```
26+
chmod +x swift-format
27+
```
28+
29+
### Run
30+
31+
Now, you can use swift-format:
32+
33+
```
34+
./swift-format --version
35+
```

0 commit comments

Comments
 (0)