mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-26 17:08:01 +02:00
Complete docs
This commit is contained in:
parent
f53afe80c9
commit
76e2ad7db7
7 changed files with 718 additions and 29 deletions
21
demo/carbon.sh
Executable file
21
demo/carbon.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
. beddu.sh
|
||||
|
||||
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"
|
||||
|
||||
case "$action" in
|
||||
"Get my 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
|
||||
line; pen "Your coordinates are $location"
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue