swift-sh
Easily script with third-party Swift dependencies
swift-sh is a command-line utility that makes it practical to write Swift scripts with third-party dependencies. Normally, adding external Swift packages requires converting a script into a full Swift Package Manager project. This tool instead reads dependency specifications written beside import statements and automatically fetches the required packages. It builds and caches an internal package before executing the script, rebuilding only when necessary. Dependencies can come from GitHub,...