12 lines
325 B
Bash
Executable File
12 lines
325 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# @describe Get the current weather in a given location.
|
|
# @option --location! The city and optionally the state or country, e.g., "London", "San Francisco, CA".
|
|
|
|
main() {
|
|
curl -fsSL "https://wttr.in/$(echo "$argc_location" | sed 's/ /+/g')?format=4&M"
|
|
}
|
|
|
|
eval "$(argc --argc-eval "$0" "$@")"
|