diff --git a/README.md b/README.md index 13b0e55..9ce4972 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 3e9a4e1..1271e27 100644 Binary files a/demo/carbon.png and b/demo/carbon.png differ diff --git a/demo/carbon.sh b/demo/carbon.sh index 09a425e..21723a8 100755 --- a/demo/carbon.sh +++ b/demo/carbon.sh @@ -2,20 +2,17 @@ . beddu.sh -line -pen purple "Hello, I'm your IP helper, here to help you will all your IP needs." -line +pen purple "Hello, I'm your IP helper, here for all your IP needs!" -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 - line; pen "Your IP is $ip" + run --out IP curl ipinfo.io/ip + pen "Your IP is $IP" ;; - "Get my location") - run --out location curl -s ipinfo.io/loc - line; pen "Your coordinates are $location" + "Get my LOCATION") + run --out LOCATION curl -s ipinfo.io/loc + pen "Your coordinates are $LOCATION" ;; esac -