mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-27 01:18:01 +02:00
Compare commits
No commits in common. "main" and "v1.1.0" have entirely different histories.
3 changed files with 12 additions and 9 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
BIN
demo/carbon.png
BIN
demo/carbon.png
Binary file not shown.
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 210 KiB |
|
@ -2,17 +2,20 @@
|
||||||
|
|
||||||
. beddu.sh
|
. 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")
|
"Get my IP")
|
||||||
run --out IP curl ipinfo.io/ip
|
run --out ip curl ipinfo.io/ip
|
||||||
pen "Your IP is $IP"
|
line; 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
|
||||||
pen "Your coordinates are $LOCATION"
|
line; pen "Your coordinates are $location"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue