Commit graph

67 commits

Author SHA1 Message Date
Tim Hårek Andreassen
2077eb5a25
build: Add missing slash
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-26 19:10:06 +02:00
Tim Hårek Andreassen
dbcaca54c7
chore: Add version to root cmd
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-26 19:06:26 +02:00
Tim Hårek Andreassen
4c1a70e412
chore: Replace justfile with Makefile
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-26 19:04:22 +02:00
Tim Hårek Andreassen
7388a1b893
refactor: Remove root cmd
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-18 09:38:21 +02:00
Tim Hårek Andreassen
df389705a0
chore: Shorter descriptions
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-18 09:29:07 +02:00
Tim Hårek Andreassen
985f8a53d3
feat: Add cache cmd
Implements: https://todo.sr.ht/~timharek/yr/4
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-17 21:17:12 +02:00
Tim Hårek Andreassen
04059d8af6
refactor: Use my own browser pkg
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-17 19:31:58 +02:00
Tim Hårek Andreassen
f41d630a77
refactor: Simplify flags
Use *Var version of cobra flags instead of passing around `cmd` everywhere

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-17 16:36:54 +02:00
Tim Hårek Andreassen
53981cae1d
build(just): Add install
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-16 22:59:56 +02:00
Tim Hårek Andreassen
d2a4b1a1d8
docs: Use latest
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-16 22:08:26 +02:00
Tim Hårek Andreassen
cab251d2d3
docs: Add screenshot
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-11 11:21:51 +02:00
Tim Hårek Andreassen
97e085e2ad
docs: Add docs
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-05 23:40:49 +02:00
Tim Hårek Andreassen
7435512ffb
style: Rounded border
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-05 18:33:20 +02:00
Tim Hårek Andreassen
bfbd031e41
refactor: Swap logic order for UTC time convertion
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 23:38:23 +02:00
Tim Hårek Andreassen
687d3e8be7
feat: Open yr.no on yr --web
Implements: https://todo.sr.ht/~timharek/yr/3
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 23:26:35 +02:00
Tim Hårek Andreassen
437f7f5f9a
feat: Add caching
Implements: https://todo.sr.ht/~timharek/yr/1
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 23:20:26 +02:00
Tim Hårek Andreassen
cb00a14019
feat: Add debug cmd flag
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 23:19:20 +02:00
Tim Hårek Andreassen
a8689a100b
fix: Use multi-line
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 23:18:41 +02:00
Tim Hårek Andreassen
019ec38fc1
feat: Add initial caching
References: https://todo.sr.ht/~timharek/yr/1
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 21:53:00 +02:00
Tim Hårek Andreassen
845038120e
refactor: Move met and nominatim to ./pkg
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 21:05:21 +02:00
Tim Hårek Andreassen
366a97d55f
docs: Use codeblock
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 21:02:18 +02:00
Tim Hårek Andreassen
992a167c12
feat: Add now --oneline
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 21:00:06 +02:00
Tim Hårek Andreassen
13d9c41af3
refactor: Move output json to helper func
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 20:51:20 +02:00
Tim Hårek Andreassen
e06a647fd4
refactor: Move browser opening to function
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 20:44:57 +02:00
Tim Hårek Andreassen
7f72ae918b
refactor: Move duplicate code to helper
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 20:39:05 +02:00
Tim Hårek Andreassen
2de7524dea
fix: Remove bad alias from today
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-04 11:35:50 +02:00
Tim Hårek Andreassen
c5cb76a731
chore: Better times
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 22:48:50 +02:00
Tim Hårek Andreassen
f1aa9cbf16
feat: Add today command
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 22:45:55 +02:00
Tim Hårek Andreassen
69171f4e59
feat: Add tomorrow command
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 22:45:31 +02:00
Tim Hårek Andreassen
5972d8a206
chore: Use built-in "stopper"
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 20:21:24 +02:00
Tim Hårek Andreassen
eb09d76ad0
docs: Add binary installation instructions
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 20:19:57 +02:00
Tim Hårek Andreassen
eb8e643804
build: Simplify
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 20:13:01 +02:00
Tim Hårek Andreassen
e7ef620e80
ci: Add oauth
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 20:01:32 +02:00
Tim Hårek Andreassen
7007d1a89f
ci: Check for correct tag
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 19:59:28 +02:00
Tim Hårek Andreassen
18681cffee
docs: Typos
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 19:53:09 +02:00
Tim Hårek Andreassen
112ba8795d
docs: Add CLI install instructions
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 19:44:42 +02:00
Tim Hårek Andreassen
7d256f0ca6
docs: Add package usage
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 19:40:34 +02:00
Tim Hårek Andreassen
6b22e870a1
build: Add building
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 19:32:53 +02:00
Tim Hårek Andreassen
a0ff16465d
refactor: Rename module
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 18:53:14 +02:00
Tim Hårek Andreassen
eda33958a8
docs: Add contributing
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 16:27:37 +02:00
Tim Hårek Andreassen
5fb146f602
docs: Add usage
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 16:13:14 +02:00
Tim Hårek Andreassen
10e1c770af
feat: Add flag for opening result in web-browser
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-03 16:05:18 +02:00
Tim Hårek Andreassen
a638c0b678
chore: Add newline
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-02 21:15:49 +02:00
Tim Hårek Andreassen
56cd590025
feat: Add flag for UTC time defaults to local time
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-02 21:01:39 +02:00
Tim Hårek Andreassen
6cb3994ae9
feat: Add interval to forecast cmd
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-02 20:40:49 +02:00
Tim Hårek Andreassen
65dd6ad1f5
feat: Add new cmd for forecasts
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-02 20:29:13 +02:00
Tim Hårek Andreassen
b350835718
refactor: Add Forecast method to yr
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-02 19:51:44 +02:00
Tim Hårek Andreassen
798faa786b
chore: Add units
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-02 19:22:44 +02:00
Tim Hårek Andreassen
baedbeb469
docs: Add comments
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-02 19:21:17 +02:00
Tim Hårek Andreassen
0faf0f2cf5
chore: Add more tests for direction
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-02 19:19:36 +02:00