loading.sh
v0.0.2
Published
Loading with style in the shell.
Downloads
12
Readme
loading.sh
Loading with style in the shell.
Contents - Usage | Install | Tests | License
If you'd like to jump straight to installing loading.sh, please go to the Install section or try one of these:
brew tap evnp/loading.sh && brew install loading.sh
# OR
npm install -g loading.sh
# OR to curl directly, see https://github.com/evnp/loading.sh#installUsage
🚧 Under construction 🚧
Install
Homebrew:
brew tap evnp/loading.sh && brew install loading.shNPM:
npm install -g loading.shcurl:
read -rp $'\n'"Current \$PATH:"$'\n'"${PATH//:/ : }"$'\n\n'"Enter a directory from the list above: " \
&& curl -L -o "${REPLY/\~/$HOME}/loading.sh" https://github.com/evnp/loading.sh/raw/main/loading.sh \
&& chmod +x "${REPLY/\~/$HOME}/loading.sh"loading.sh has no external dependencies, but it's good practice to audit code before downloading.sh onto your system to ensure it contains nothing unexpected. Please view the full source code for loading.sh here: https://github.com/evnp/loading.sh/blob/master/loading.sh
If you also want to install loading.sh's man page:
read -rp $'\n'"Current \$MANPATH:"$'\n'"${MANPATH//:/ : }"$'\n\n'"Enter a directory from the list above: " \
&& curl -L -o "${REPLY/\~/$HOME}/man1/loading.sh.1" https://github.com/evnp/loading.sh/raw/main/man/loading.sh.1Verify installation:
loading.sh -v
==> loading.sh 0.0.2
brew test loading.sh
==> Testing loading.sh
==> /opt/homebrew/Cellar/loading.sh/0.0.2/bin/loading.sh test --print 1234 hello worldTests
Run once:
npm install
npm testUse fswatch to re-run tests on file changes:
brew install fswatch
npm install
npm run testwNon-OSX: replace brew install fswatch with package manager of choice (see fswatch docs)
License
MIT
