/weather-cli

Weather CLI Example

Primary LanguageGo

Weather CLI Example

This is an example of the weather CLI based on the WeatherAPI implemented with the Go (golang) programming language.

Requirements for development

Go must be installed.

Compile

go build -o weather-cli .

Requirements for usage

API-Key from WeatherAPI must be set as an environment variable WEATHERAPI_KEY.

Usage

Show help

./weather-cli -h

Show weather for Berlin

./weather-cli -l Berlin