3 ms·
Show HN: shortcommand – Easily run a set of commands quickly using a YAML file
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.
- inshadows 4y ago#!/bin/bash command1 command2 wow, magic
- kermire 4y agoHaha yes, that works too. For clarification. For running a set of commands, one can just use a shell script. This does a little more that. This allows you to have a set of commands under a group and a sub group in a single yaml file, for easy access. This is more a centralized shortcut to manage multiple command sets.
- Juminuvi 4y agoNeat 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.
- kermire 4y agoThanks :) taskfile.dev looks quite useful for project specific stuff.
- broknbottle 4y agoReminds me of just, sake or rucksack. https://github.com/casey/just https://github.com/casey/just https://github.com/alajmo/sake https://github.com/alajmo/sake https://github.com/acritelli/rucksack https://github.com/acritelli/rucksack