☀️ ⛅ ☁️ ❄️ ⚡
-
Install:
- create an alias
go-for-aso it's accesible via CLI
- create an alias
-
Run:
- check if the user has an Open Weather API key
- if not → tip the user to go and get it
- prompt the user to enter its API key
- if the user has defaults set
- query OW with defaults
-
&handle-response
- check if the user has not a default location set
- ! → ask them if they want to be geolocated
- ! → ask them to enter it manually
- ! → tip them they can set the location via flag
- check if the user has a default activity set
- ! → prompt user to choose between
swim/hike/run - ! → tip them they can set the activity via flag
- ! → prompt user to choose between
- query Open Weather API
- pass key as arg
- pass location as arg
-
&handle-response
- handle response
- check if the user has an Open Weather API key
-
User should be able to pass flags:
- custom location
- geolocate
- activity
- API key
-
User should be able to set defaults via flags:
- location
- activity
- API key
- store defaults via ENV vars