Show HN: shortcommand – Easily run a set of commands quickly using a YAML file
github.com
Show HN: shortcommand – Easily run a set of commands quickly using a YAML file
1–8 of 8 posts
Re: Show HN: shortcommand – Easily run a set of commands quickly using a YAML file
#2 #!/bin/bash
command1
command2
wow, magicRe: Show HN: shortcommand – Easily run a set of commands quickly using a YAML file
#3#!/bin/bash command1 command2 wow, magic
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.
Re: Show HN: shortcommand – Easily run a set of commands quickly using a YAML file
#4#!/bin/bash command1 command2 wow, magic
Haha 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.
Re: Show HN: shortcommand – Easily run a set of commands quickly using a YAML file
#5Earlier quoted context omitted.
Haha 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.
Check out functions/procedures/subroutines.
Re: Show HN: shortcommand – Easily run a set of commands quickly using a YAML file
#6Right 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.
Re: Show HN: shortcommand – Easily run a set of commands quickly using a YAML file
#7Neat 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 too…
taskfile.dev looks quite useful for project specific stuff.