So I’m sure we’ve all spent time writing scripts or figuring out CLIs for that one project we’re working on, and then kind of go on to forget what we did. Then, when another project comes along later, you wish you had that script again so you could see how you did that thing you did.

Personally, I used to just check random scripts into a repo as a kind of “archive” of all my scripts. But I wanted a better way to organize and use these things.

For years I’ve been building and collecting these scripts into a CLI that I call Devtools to make it so that each script is a subcommand. I’ve had a lot of my friends and coworkers ask me to open-source it so they could use it and see how some things are done in Bash, what tools I use, etc. So…here’s that CLI!


But what I’d honestly like is more…

So what are your useful scripts you’ve written? Or what’s that script you wrote years ago that you now swear by? I want to grow this collection and feed the addiction!

  • Valso@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    12 天前

    If you want more, I can offer you cases: https://github.com/rado84-github/case-scripts This is just an explanation how they work and how to use them, but once you know the principle, you can do whatever you want with the cases, there’s literally no limit to what you can do. You could even put a script file inside the case script file. I suppose I could build them into a binary file but I prefer to keep them as script files, so that they’re truly open source and nothing is hidden, like with a binary file.