Commit graph

9 commits

Author SHA1 Message Date
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
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
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
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