Skip to content

Commit

Permalink
Timezones: Build auto-suggestion from all known timezones.
Browse files Browse the repository at this point in the history
  • Loading branch information
siedentop committed Feb 9, 2022
1 parent dab8c4f commit 5f89e2e
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 22 deletions.
230 changes: 226 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ categories = ["command-line-utilities"]
[dependencies]
clap = { version = "~3.0.14", features = ["cargo", "derive"] }
chrono = "0.4.19"
chrono-tz = "0.6.1"
chrono-tz = { git = "https://github.com/siedentop/chrono-tz", rev = "6bf301cf27efaa5e65d33d29c6de8180793a0bed" }
lazy_static = "1.4.0"
regex = "1.5.4"
auto_correct_n_suggest = "1.0.0"
eyre = "0.6.6"
color-eyre = "0.6.0"
thiserror = "1.0.30"
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use thiserror::Error;

pub mod timezones;

#[derive(Debug, Error)]
pub enum RizzyError {
#[error("Unknown timezone '{0}', did you mean: {1:?}")]
InvalidTimezone(String, Vec<String>),
}
Loading

0 comments on commit 5f89e2e

Please sign in to comment.