Compare commits

...

1 commit
v1.1.0 ... main

Author SHA1 Message Date
Manuele Sarfatti
afcb9056ec Simpler Carbon example 2025-05-21 10:51:56 +02:00
3 changed files with 9 additions and 12 deletions

View file

@ -1,4 +1,4 @@
# Beddu # Beddu 💅🏻
A lightweight bash framework for interactive scripts with pretty output. A lightweight bash framework for interactive scripts with pretty output.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 185 KiB

Before After
Before After

View file

@ -2,20 +2,17 @@
. beddu.sh . beddu.sh
line pen purple "Hello, I'm your IP helper, here for all your IP needs!"
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") "Get my IP")
run --out ip curl ipinfo.io/ip run --out IP curl ipinfo.io/ip
line; pen "Your IP is $ip" pen "Your IP is $IP"
;; ;;
"Get my location") "Get my LOCATION")
run --out location curl -s ipinfo.io/loc run --out LOCATION curl -s ipinfo.io/loc
line; pen "Your coordinates are $location" pen "Your coordinates are $LOCATION"
;; ;;
esac esac