mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-26 17:08:01 +02:00
Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
![]() |
afcb9056ec |
3 changed files with 9 additions and 12 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: 210 KiB After Width: | Height: | Size: 185 KiB |
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue