diff --git a/README.md b/README.md index 3b36110..30d22aa 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![tests](https://github.com/MalteT/mensa/actions/workflows/rust.yml/badge.svg)](https://github.com/MalteT/mensa/actions/workflows/rust.yml) + # mensa CLI tool to query the menu of canteens contained in the @@ -9,6 +10,7 @@ CLI tool to query the menu of canteens contained in the ![example](https://user-images.githubusercontent.com/11077981/137278085-75ec877a-dba0-44bb-a8dc-6c802e24178c.png) + ## Features - [X] Runs on Linux, macOS and Windows. @@ -18,13 +20,16 @@ CLI tool to query the menu of canteens contained in the - [X] All request are cached locally. - [X] Fuzzy date parsing based on [date_time_parser](https://lib.rs/crates/date_time_parser). -- [ ] List your favourite meals in canteens close to your location. +- [X] List your favourite meals in canteens close to your location. +- [X] JSON Output ## Installation ### Cargo +**Only nightly Rust supported at the moment**. + ```console $ cargo install --git https://github.com/MalteT/mensa ``` @@ -50,7 +55,6 @@ See `mensa --help`. - `mensa canteens` lists canteens near you based on your current IP in a default radius of 10km. - `mensa tags` will list the currently known meal tags like "**12** Nuts". -- `mensa tomorrow` shortcut for `mensa meals -d tomorrow [...]` ## Configuration diff --git a/src/cache/mod.rs b/src/cache/mod.rs index fa12ae6..183a3a6 100644 --- a/src/cache/mod.rs +++ b/src/cache/mod.rs @@ -100,7 +100,7 @@ where { // Normalize the url at this point since we're using it // as the cache key - let url = Url::parse(url.as_ref()).map_err(|_| Error::InternalUrlError)?; + let url = Url::parse(url.as_ref()).map_err(|_| Error::InternalUrl)?; let url = url.as_ref(); info!("Fetching {:?}", url); // Try getting the value from cache, if that fails, query the web diff --git a/src/main.rs b/src/main.rs index d193b5c..dcf979c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,7 @@ //! //! [![tests](https://github.com/MalteT/mensa/actions/workflows/rust.yml/badge.svg)](https://github.com/MalteT/mensa/actions/workflows/rust.yml) //! +//! //! # mensa //! //! CLI tool to query the menu of canteens contained in the @@ -9,6 +10,7 @@ //! //! ![example](https://user-images.githubusercontent.com/11077981/137278085-75ec877a-dba0-44bb-a8dc-6c802e24178c.png) //! +//! //! ## Features //! //! - [X] Runs on Linux, macOS and Windows. @@ -18,13 +20,16 @@ //! - [X] All request are cached locally. //! - [X] Fuzzy date parsing based on //! [date_time_parser](https://lib.rs/crates/date_time_parser). -//! - [ ] List your favourite meals in canteens close to your location. +//! - [X] List your favourite meals in canteens close to your location. +//! - [X] JSON Output //! //! //! ## Installation //! //! ### Cargo //! +//! **Only nightly Rust supported at the moment**. +//! //! ```console //! $ cargo install --git https://github.com/MalteT/mensa //! ``` @@ -50,7 +55,6 @@ //! - `mensa canteens` lists canteens near you based on your current //! IP in a default radius of 10km. //! - `mensa tags` will list the currently known meal tags like "**12** Nuts". -//! - `mensa tomorrow` shortcut for `mensa meals -d tomorrow [...]` //! //! //! ## Configuration