blob: ad45c5fba5d45fe8fee17c4bf6d1ea98e37e9e86 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
set -e
# @describe Get the current weather in a given location.
# @option --location! The city and state, e.g. San Francisco, CA
main() {
curl "https://wttr.in/$(echo "$argc_location" | sed 's/ /+/g')?format=4&M"
}
eval "$(argc --argc-eval "$0" "$@")"
|