Skip to content

Commit

Permalink
new file: weather.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dee-mee committed Jun 1, 2024
1 parent e4ef08c commit 54b8909
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions weather.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# weather.sh

program=Weather
year=2024
developer=dee-mee

case $1 in
-h | --help)
echo "$program $version"
echo "Copyright $year $developer. All rights reserved."
echo
echo "Usage: weather [options]"
echo "Option Long Option Description"
echo "-h --help Show the help screen"
echo "-l [location] --location [location] Specifies the location"
;;
-l | --location)
curl https://wttr.in/$2
;;
*)
curl https://wttr.in
;;
esac

0 comments on commit 54b8909

Please sign in to comment.