Example to install and use a specific version of swiftformat:
brew tap buildtools-version-taps/homebrew-swiftformat-versions-tap
brew install swiftformat@0.29.1
# to run, call:
/usr/local/Cellar/swiftformat@0.29.1/0.29.1/bin/swiftformat
Homebrew tap that allows access to previous versions of swiftformat
Ruby