swift-sh
« Back to VersTracker
Description:
Scripting with easy zero-conf dependency imports
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @mxcl  |  formulae.brew.sh
Category: Developer tools
Tags: swift scripting dependencies developer-tools automation
Install: brew install swift-sh
About:
swift-sh allows writing Swift scripts with automatic dependency management using a simple import comment syntax. It eliminates the need for manual package configuration or build steps for scripting. Dependencies are resolved transparently from the Swift Package Manager.
Key Features:
  • Zero-configuration dependency imports
  • Automatic dependency resolution and caching
  • Seamless Swift Package Manager integration
  • Single-file script execution
Use Cases:
  • Quick automation scripts with external libraries
  • Data processing and file manipulation tasks
  • Prototyping Swift code with dependencies
Alternatives:
  • swift-package-manager – More verbose for simple scripts; requires manual project setup
  • Homebrew formulae – System-wide installation vs. per-script dependency management
Version History
Detected Version Rev Change Commit
Oct 25, 2024 4:22am 1 VERSION_BUMP 51aec574
Sep 13, 2024 6:26pm 0 VERSION_BUMP 2c9d833c
Sep 13, 2024 1:51pm 0 VERSION_BUMP 2a30625e