Hacker GitHub

← All repos

mxcl/swift-sh

View on GitHub ↗ ★ 1,890 Swift

Easily script with third-party Swift dependencies.

9 mentions on Hacker News by 8 people: 4 stories, 5 comments · first 2019-01-13 · latest 2025-08-10

Mentions per year 9 mentions · busiest year 2019 (4)
20082026
  1. ▲ 2
    Swift-sh: like uv scripts for Python, but for Swift
    story by fastily · 2025-08-10 · 1 comment
  2. …functionality from Windows to the Mac to help me run these scripts at startup more easily [2] [1] https://github.com/mxcl/swift-sh [2] https://github.com/FuzzyIdeas/StartupFolder
    comment by alin23 · 2025-01-28 · in Using uv as your shebang line
  3. …allows you to declare dependencies as comments after the import: import PromiseKit // @mxcl ~> 6.5 https://github.com/mxcl/swift-sh
    comment by w10-1 · 2023-08-14 · in Ask HN: Share a shell script you like
  4. …the tool, and caching it all so there's no overhead the next time. The best available tool now is https://github.com/mxcl/swift-sh . It reads dependency information off import comments. It can also generate the project for you, if/when you…
    comment by w10-1 · 2023-01-05 · in Using Swift for Scripting (2019)
  5. …}.done { print("notice: two and a half seconds elapsed") exit(0) } RunLoop.main.run() https://github.com/mxcl/swift-sh
    comment by watersb · 2022-04-16 · in On env Shebangs
  6. ▲ 1
    Swift shell scripting with third party dependencies
    story by aeontech · 2019-01-25 · 0 comments
  7. ▲ 2
    Swift sh: Easily import third-party dependencies in your Swift scripts
    story by ingve · 2019-01-13 · 0 comments
  8. …as writing a bash script Edit: Just saw that Max Howell (creator of Homebrew) released this today https://github.com/mxcl/swift-sh This absolutely solves the issues. Fantastic.
    comment by terhechte · 2019-01-13 · in Writing custom tools with Swift
  9. ▲ 2
    Swift-sh: Swift scripting with easy, zero-conf dependency imports
    story by ArmandGrillet · 2019-01-13 · 1 comment