
Stop Writing Bash Scripts, There's a Better Way
If you've ever written a Bash script longer than 30 lines, you know the feeling. You come back to it a week later and have no idea what it does. Error handling is a mess of $? checks, variables are global by default, and debugging feels like archaeology. I got tired of it. But I also didn't want to spin up a Python virtual environment just to move some files around or hit an API. That felt like overkill. So I built Logos. What is Logos? Logos is a small scripting language I wrote in Go. It is designed for the kind of work Bash handles poorly: readable logic, proper error handling, built-in HTTP and file operations, and code you can actually come back to a week later. It is not trying to replace Python. It is not trying to replace Go. It is just a tool for that middle ground where Bash becomes unreadable but pulling in a full language feels like too much. Scripts use the .lgs extension and you run them with the lgs command. What does it look like? Here is a simple HTTP request in Logos:
Continue reading on Dev.to
Opens in a new tab


