diff --git a/README.md b/README.md index 9ce4972..13b0e55 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Beddu 💅🏻 +# Beddu A lightweight bash framework for interactive scripts with pretty output. diff --git a/demo/carbon.png b/demo/carbon.png index 1271e27..3e9a4e1 100644 Binary files a/demo/carbon.png and b/demo/carbon.png differ diff --git a/demo/carbon.sh b/demo/carbon.sh index 21723a8..09a425e 100755 --- a/demo/carbon.sh +++ b/demo/carbon.sh @@ -2,17 +2,20 @@ . beddu.sh -pen purple "Hello, I'm your IP helper, here for all your IP needs!" +line +pen purple "Hello, I'm your IP helper, here to help you will all your IP needs." +line -choose ACTION "What would you like to do?" "Get my IP" "Get my location" +choose action "What would you like to do?" "Get my IP" "Get my location" -case "$ACTION" in +case "$action" in "Get my IP") - run --out IP curl ipinfo.io/ip - pen "Your IP is $IP" + run --out ip curl ipinfo.io/ip + line; pen "Your IP is $ip" ;; - "Get my LOCATION") - run --out LOCATION curl -s ipinfo.io/loc - pen "Your coordinates are $LOCATION" + "Get my location") + run --out location curl -s ipinfo.io/loc + line; pen "Your coordinates are $location" ;; esac +