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
20082026
-
▲ 2
Swift-sh: like uv scripts for Python, but for Swiftstory by fastily · 2025-08-10 · 1 comment
-
…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 -
…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 -
…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) -
…}.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 -
▲ 1
Swift shell scripting with third party dependenciesstory by aeontech · 2019-01-25 · 0 comments
-
▲ 2
Swift sh: Easily import third-party dependencies in your Swift scriptsstory by ingve · 2019-01-13 · 0 comments
-
…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 -
▲ 2
Swift-sh: Swift scripting with easy, zero-conf dependency importsstory by ArmandGrillet · 2019-01-13 · 1 comment