Fredrik Kvalvik
9449cba68d
style: right align cells for better readability
...
improve readability by right-aligning text. This
makes reading a mix of positive/negative numbers,
or 1/2 digit numbers easier.
This also makes it a bit easier to parse a longer
forecast when it spans mulitple days, as the time
stays in the same place.
2024-11-25 19:27:09 +01:00
Tim Hårek Andreassen
858b336bcf
fix(cmd/forecast): Add -i flag again
...
Fixes: https://todo.sr.ht/~timharek/yr/7
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-11-13 19:26:59 +01: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
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
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
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
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
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
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
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