Last active
June 23, 2019 02:28
-
-
Save rexagod/d8c724a5bb8a4607b04767d9b3583ceb to your computer and use it in GitHub Desktop.
`matcher-cli` demo (w/ static data)
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 Hi there! 👋\n \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.\n\033[34m All issues and doubts are welcome at https://github.com/publiclab/matcher-cli/issues" | |
while true | |
do | |
echo "" | |
read -p "matcher@demo ~> " argv | |
URL = "" | |
case $argv in | |
"matches") | |
URL = "https://gist.githubusercontent.com/rexagod/0b1e9dad6ba12bc93f1213f8a068686a/raw/9bbc2dba5400f55ebed40154f6f74ae4cfefaac5/matches" | |
;; | |
"corners") | |
URL = "https://gist.githubusercontent.com/rexagod/5258144dd6f1f6e55347c02c14be0f48/raw/7b802cd5bf074114fb94b71e9e4e948f914283a7/corners" | |
;; | |
"help") | |
URL = "https://gist.githubusercontent.com/rexagod/1342088c32035136ec38f4c56f99fe2a/raw/4ed271aa136978b34c38df44f2826235bda7d7d6/help" | |
;; | |
"clear") | |
clear | |
;; | |
*) | |
echo "invalid input" | |
exit | |
esac | |
bash <($URL) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment