The swift-format-executable
repository provides a pre-built executable binary for swiftlang/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.
To download the latest version of the swift-format
binary, run the following command:
curl -LO https://github.com/DevYeom/swift-format-executable/releases/latest/download/swift-format.zip
To download a specific version of the swift-format
binary, specify the version in the URL:
curl -LO https://github.com/DevYeom/swift-format-executable/releases/download/510.1.0/swift-format.zip
If you're running in x86_64
environment, you can use the following URL.
curl -LO https://github.com/DevYeom/swift-format-executable/releases/download/510.1.0/swift-format-x86_64.zip
After downloading, give execution permission to the binary:
chmod +x swift-format
Now, you can use swift-format:
./swift-format --version