Commit graph

68 commits

Author SHA1 Message Date
Malte Tammena 0fe0494e94 Bump version, update deps 2021-10-22 16:51:16 +02:00
Malte Tammena 5242dd98c3 Add tags
New tags:
 - Acidifier
 - Cacao Containing Fat Glaze
 - Milk -> Lactose
 - Waxed

Also expanded regexes for tag matching.
2021-10-22 16:49:05 +02:00
Malte Tammena c150629446 Add pupils price tag 2021-10-22 16:48:46 +02:00
Malte Tammena bb006be35d Handle empty meal lists 2021-10-22 15:58:09 +02:00
Malte Tammena 7ac8bbfe80 Restructure 2021-10-22 15:41:17 +02:00
Malte Tammena f4ab56acc3 Improve meal printing 2021-10-22 14:55:35 +02:00
Malte Tammena d1b0dc36fe Cleanup, add command tests 2021-10-22 14:10:17 +02:00
Malte Tammena 15e5133f8c Move to global config, rewrite fetching 2021-10-21 20:47:56 +02:00
Malte Tammena 6da8a95a3b Rework fetachable resources 2021-10-21 16:08:44 +02:00
Malte Tammena 9158875169 Respect --json in mensa canteens
See #4.
2021-10-20 20:45:28 +02:00
Malte Tammena ab9bd9801c Respect --json in mensa tags
See #4.
2021-10-20 20:35:08 +02:00
Malte Tammena fcf81a71db Move tag.rs module, add basic --json
The `--json` flag is currently only respected by `mensa meals`.
Relates to #4.
2021-10-20 10:50:40 +02:00
Malte Tammena b5171922f6 Fix license in README 2021-10-20 10:39:13 +02:00
Malte Tammena ce4e7087c4 Remove border around logo 2021-10-20 10:36:32 +02:00
Malte Tammena 93e972fcea Fix coloring for --color never 2021-10-19 17:33:32 +02:00
Malte Tammena 3ffa7a4986 Move to MIT license 2021-10-19 16:56:08 +02:00
Malte Tammena 0c085a9bed Update Readme with logo 2021-10-19 16:50:18 +02:00
Malte Tammena a1300ec7b5 Update logo 2021-10-19 16:24:35 +02:00
Malte Tammena 8704b25088 Add logo 2021-10-19 16:11:29 +02:00
Malte Tammena 4f9c96e6d6 Update README 2021-10-19 16:10:59 +02:00
Malte Tammena 94521f974d Add windows and mac CI
Preparations for #1.
2021-10-19 15:16:33 +02:00
Malte Tammena 3d1e6697d9 Add --color option
The option can be used to overwrite the automatic coloring behaviour.
Fixes #5.
2021-10-19 15:05:01 +02:00
Malte Tammena 5e334cf57f Add --plain flag
Given this option, non-ascii chars will be pruned from the output.
Fixes #2.
2021-10-19 14:29:07 +02:00
Malte Tammena 8ab197b41c Make colorization smarter
Works towards #2.
Also remove termion, working towards #1.
2021-10-18 17:45:41 +02:00
Malte Tammena 1594eeee33 Move meal functions into meal module 2021-10-17 22:49:46 +02:00
Malte Tammena 2500b854e2 Extract geoip stuff into module 2021-10-17 21:19:50 +02:00
Malte Tammena 1fcbadc23d Move state into State struct
Makes it easier to hand it around.
2021-10-17 20:59:52 +02:00
Malte Tammena fd21b90651 Add README.md verification 2021-10-17 15:49:15 +02:00
Malte Tammena c0812208ff Rename workflow 2021-10-17 14:43:52 +02:00
Malte Tammena 4498e6a5ad Add batch to README.md 2021-10-17 14:41:49 +02:00
Malte Tammena f371fdcb0d Rename rust action 2021-10-17 14:34:31 +02:00
Malte Tammena 82ef00c4c5
Fix rust version in Action? 2021-10-17 13:24:46 +02:00
Malte Tammena e09565b309
Use nightly Rust in Github Action 2021-10-17 13:14:16 +02:00
Malte Tammena 1ba4e025bb
Add simple Github Action 2021-10-17 13:09:59 +02:00
Malte Tammena 8d9c6eaf30 Use cargo-readme for README.md 2021-10-17 13:06:19 +02:00
Malte Tammena 84f0c1805b Refactor cache related function names 2021-10-17 12:43:56 +02:00
Malte Tammena 38296d8419 Simplify caching, add tests 2021-10-16 18:54:57 +02:00
Malte Tammena f61af8b7ef Rewrite caching, respecting ETAG 2021-10-15 15:00:08 +02:00
Malte Tammena b8728fea72 Improve canteen fetching
Add caching, extract into module.
2021-10-15 08:16:46 +02:00
Malte Tammena 78f7501067 Update dependencies 2021-10-14 16:17:54 +02:00
Malte Tammena 6a4af5dbd6 Switch from dirs to directories-next
The latter is less low-level and says to be better maintained.
2021-10-14 13:55:51 +02:00
Malte Tammena fcfba27d56 Remove unused dependency 2021-10-14 13:55:07 +02:00
Malte Tammena 53faae06d7 Unify concepts places/mensa -> canteen 2021-10-14 12:23:52 +02:00
Malte Tammena f0857be24f Add lupin tag, update version 2021-10-14 10:43:33 +02:00
Malte Tammena f42a0d02fc
Fix README 2021-10-14 10:33:34 +02:00
Malte Tammena 26717905d0 Update README with usage information 2021-10-14 10:32:46 +02:00
Malte Tammena 0ce0b4fe37
Add image to README 2021-10-14 10:15:02 +02:00
Malte Tammena 4b3beeb0df Update README after branch switch 2021-10-14 10:10:42 +02:00
Malte Tammena 34fa98188f Add cacache-based request caching 2021-10-13 22:49:06 +02:00
Malte Tammena 015be82cbc Add commands and pizzazz 2021-10-13 16:15:11 +02:00