from Hacker News

Show HN: shortcommand – Easily run a set of commands quickly using a YAML file

by kermire on 8/14/22, 6:47 PM with 7 comments

This tiny command line tool was created mainly because I have several apps that I run on my server and finding the right set of commands for deploying an app is a hassle. So this basically documents the set of commands for each of my projects, as well as gives me quick access to them. Just wanted to share it here in case anyone else might find it useful.
  • by broknbottle on 8/18/22, 11:39 AM

  • by Juminuvi on 8/16/22, 12:00 AM

    Neat project! I use a tool called taskfile.dev for managing tasks like this in projects but I've always thought it would be nice to have a more global tool like this.

    Right now what I do is write functions and add them to my profile but this leads to adding helper code to do stuff like handle errors, handle vars, printing out index of commends with documentation, etc. This makes my profile just messy so I think a tool like this could come in handy.

  • by inshadows on 8/15/22, 7:42 AM

        #!/bin/bash
        command1
        command2
    
    wow, magic