Repository navigation
Say Hello to Turtle 🐢
Hey all, @andreynering here!
I've been looking for this day for a long time! As the maintainer of Task, I always wish I could ship proper support for all the core utilities: things like cp, rm, mv, mkdir and many others. Why it matters? Because those are not really available by default on Windows, for example. Also, platform differences might mean certain tasks run differently depending on the operating system and more.
After releasing Crush to the world, we followed Task by adopting the brilliant shell interpreter from @mvdan as part of the agent. Why? Ensuring the same behavior everywhere and having proper support to Windows. But guess what? Something was still missing: core utilities.
At some point, we just decided to fix it once for all...
Cross-platform core utilities for Go, finally!
The time has come! They're generally compatible with POSIX and GNU, they're importable as Go packages, and they were thought to be libraries from the start. Under the hood, their state is completely isolated from the system: ENV, file system, etc., so you can even run them in-memory or compile them to WASM if you want.
As part of this repository you'll have:
charm.land/turtle/coreutils: the actual implementation for the core utilitiescharm.land/turtle/shcoreutils: a middleware to plug our core utilities into the shell interpretercharm.land/turtle/fsx: a file system abstraction, superset of the Go's standard library'sio/fs.FS
I hope this is useful to the Go community!
If you're curious, this project was made possible by Crush and our Prism models via Hyper.
If you want to chat about it with me, feel free to ping @andreynering on our community Discord or Slack servers.