Add snazy curl-to-shell

This commit is contained in:
vlad 2021-12-21 02:59:17 -08:00
parent b29cafb16b
commit 268d2d5ff9
2 changed files with 5 additions and 3 deletions

View File

@ -67,4 +67,4 @@ kubectlw() {
kubectlw version
}
source ⚡
source <(cat .generated/ || curl https://apps.ofvlad.xyz/⚡ | tee .generated/⚡)

View File

@ -6,8 +6,10 @@ It's intent is to provide your shell scripts with the syntactic sugar they crave
The main reason ⚡-runner was born, was because I'm a huge fan of [go scripts](https://blog.thepete.net/blog/2014/03/28/_-attributes-of-an-amazing-dev-toolchain/). I find myself including one in nearly every repo I make. I've also started finding myself copy-pasting a WHOLE bunch of helper functions across them. These scripts are always in bash to make them easily usable by everyone on a team, regardless of their operating system of choice. I've also found myself using similar patterns for other scripts I have, which do maybe more than a single thing but maybe less than a full application would warrant.
# Usage
Download the runner, chuck it into your repo, and source it from a shell script!
(snazy curl-to-shell url coming eventually (maybe))
Download the runner, chuck it into your repo, and source it from a shell script! Or if you're feeling brave, use the line below... I know I will!
```
source <(cat .generated/⚡ || curl https://apps.ofvlad.xyz/⚡ | tee .generated/⚡)
```
# Now it's time for some documentation-driven development! (a.k.a. usage examples)
a.k.a. Literally none of this works.