X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=webi%2Fwebi.bash;h=1231c7720e34b8e814b4c5e896af70375fc7525e;hb=2767c06c94f67101178f4fff00e20192ddf0dff2;hp=665f7c6fb8e326700ca3da47d2c3e851a6114853;hpb=ac762b60f99364184ea1ecea14a0111af9520ffa;p=webi-installers%2F.git diff --git a/webi/webi.bash b/webi/webi.bash index 665f7c6..1231c77 100644 --- a/webi/webi.bash +++ b/webi/webi.bash @@ -4,16 +4,35 @@ # homepage: https://webinstall.dev # tagline: webinstall.dev for the CLI # description: | -# for the people like us that are too lazy even to run `curl https://webinstall.dev/PACKAGE_NAME` - just `webi PACKAGE_NAME` instead +# for the people like us that are too lazy even to run curl https://webinstall.dev/PACKAGE_NAME | bash +# examples: | +# ```bash +# webi node +# ``` +#
+# +# ```bash +# webi golang +# ``` +#
+# +# ```bash +# webi rustlang +# ``` +# TODO webi package@semver#channel + +cat << EOF > ~/.local/bin/webi set -e set -u -my_package=${1:-} -if [ -z "$my_package" ]; then +my_package=\${1:-} +if [ -z "\$my_package" ]; then echo "Usage: webi " echo "Example: webi node" exit 1 fi -curl -fsSL "https://webinstall.dev/$my_package" | bash +curl -fsSL "https://webinstall.dev/\$my_package" | bash +EOF +chmod a+x ~/.local/bin/webi