Last active
June 17, 2019 20:32
-
-
Save rexagod/6e1a2cfdc18e1b12ff8d64b5d4e6985a to your computer and use it in GitHub Desktop.
Demo shell script for matcher-cli.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "\033[38m" | |
echo -e "\033[38m Hi there! 👋" | |
echo -e "\033[33m" | |
echo -e $"\033[34m This is a demo for the https://github.com/publiclab/matcher-cli repository,\n which in itself is a Node-based CLI utility for headlessely testing your matcher.js configurations." | |
echo -e "\033[34m" | |
echo -e "\033[34m All issues and doubts are welcome at https://github.com/publiclab/matcher-cli/issues" | |
echo -e "\033[32m" | |
echo -e "\033[36m Start typing the commands below to see their outputs! Try typing in 'help'" | |
echo -e "\033[32m" | |
while true | |
do | |
echo "" | |
read -p "matcher@demo ~> " argv | |
if [ $argv == "matches" ] | |
then | |
curl https://gist.githubusercontent.com/rexagod/0b1e9dad6ba12bc93f1213f8a068686a/raw/9bbc2dba5400f55ebed40154f6f74ae4cfefaac5/matches | |
elif [ $argv == "corners" ] | |
then | |
curl https://gist.githubusercontent.com/rexagod/5258144dd6f1f6e55347c02c14be0f48/raw/7b802cd5bf074114fb94b71e9e4e948f914283a7/corners | |
elif [ $argv == "help" ] | |
then | |
curl https://gist.githubusercontent.com/rexagod/1342088c32035136ec38f4c56f99fe2a/raw/4ed271aa136978b34c38df44f2826235bda7d7d6/help | |
elif [ $argv == "update" ] | |
then | |
curl https://gist.githubusercontent.com/rexagod/fdf6d5eb316a85f438bdd9cb460c127f/raw/4231da4179e5b1092beeb5b8adf39c52f5a6a11e/update | |
elif [ $argv == "clear" ] | |
then | |
clear | |
else | |
echo -e "\033[31m invalid input!" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment