Read-Only Files
- .env
- .gitignore
Environment
First of all you have to make some required installations. To make it relevant to your OS please visit official websites:
-
Rust programming language - https://www.rust-lang.org/tools/install
Then, please install all dependencies using cargo following commands
cargo clean
cargo install --path ./weather-appAfter that you have to set global env vaiables:
- for Linux/MacOS use
export $(grep -v '^#' weather-app/.env | xargs)- For Windows
$env:PATH = (Get-Content weather-app/.env)Usage Example
To get all basic commands you can --help subcomand
Example:
weather --help
weather get --help
weather configuration --helpBefore getting current forecast, please configure weather provider. To do this execute following command:
weather configuration <PROVIDER>Also, to see available providers, you can use:
weather providersTo get weather forecast from chosen provider you should execute:
weather get <ADDRESS> [DATE]MUST corresponded patterns
- Address -
City,CountryorCity,CountryCodewithout whitespaces - Date -
Y-m-dwithout whitespaces