A CLI application built with Go, created so you can check the weather no matter the directory you are working in.
Install Go: https://go.dev/doc/install
- Change current directory to weather
- Build the executable:
go build -o weather
- Move executable to bin:
sudo mv weather /usr/local/bin/
- Double check PATH:
export PATH=$PATH:/usr/local/bin
- Apply changes:
source ~/.zshrc
Simply call the app with 'weather', followed by a zipcode or city
Examples:
weather columbus_ohio
weather 10029
- Change current directory to weather
- Build the executable
go build -o weather.exe
- Make custom directory for executable
mkdir C:\Users\{your-username-here}\bin
- Move executable to directory
move weather.exe C:\Users\{your-username-here}\bin
- Add directory to PATH manually
- Search for 'edit the system environment variables' or 'PATH'
- Click 'Environment Variables'
- Click 'Path' in User variables, then click Edit
- Create new environment variable, and insert the directory you made in step 4
You should be able to use the executable weather from any directory on your computer
Simply call the app with 'weather', followed by a zipcode or city
Examples:
weather columbus_ohio
weather 10029
-WIP