Compare commits

..

No commits in common. "main" and "v1.1.0" have entirely different histories.
main ... v1.1.0

3 changed files with 12 additions and 9 deletions

View file

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 210 KiB

Before After
Before After

View file

@ -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