Commit graph

76 commits

Author SHA1 Message Date
Tim Hårek Andreassen
ffe81b005d
refactor: Make table.New generic
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-11-25 19:30:34 +01:00
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
0d9cea8b95
release: v0.0.6
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-11-13 19:29:13 +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
14f46806cd
cache: Simplify expires
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-11-06 16:01:40 +01:00
Tim Hårek Andreassen
358ac49eea
chore: Uncapitalize errors
Recommended by staticcheck

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-11-05 18:49:00 +01:00
Tim Hårek Andreassen
203a623ed4
chore: Typo
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-26 19:38:07 +02:00
Tim Hårek Andreassen
23ce4a6e39
chore: Typo
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-26 19:34:25 +02:00
Tim Hårek Andreassen
b09c928d45
build: Add $TAG
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
2024-10-26 19:15:57 +02:00
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