From 5fb146f602b98492646d3f0cc2e0bf02076c28f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20H=C3=A5rek=20Andreassen?= Date: Thu, 3 Oct 2024 16:13:14 +0200 Subject: [PATCH] docs: Add usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tim HĂ„rek Andreassen --- README.md | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8aff250..f4acae9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,28 @@ -# yr-go +# yr -This is currently work in progress. My goal with this is to learn more Go and -have a Go-package that I can use from met.no and hopefully a CLI tool to check -the weather. +Get the weather delivered to your command-line. + +## Usage + +```bash +# Get help +yr --help + +# Current forecast for location +yr now bergen + +# Or with a space +yr now "new york" + +# Forecast for multiple hours +yr forecast "new york" + +# Forecast for next 5 hours +yr forecast "new york" -i 5 + +# Open forecast in your web browser +yr forecast "new york" --web + +# Open now in your web browser +yr now "new york" --web +```