Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jrduncans committed Oct 1, 2022
1 parent d3cc39f commit 308b91e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 41 deletions.
36 changes: 6 additions & 30 deletions Cargo.lock

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

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ categories = ["command-line-utilities", "date-and-time", "value-formatting"]
maintenance = { status = "actively-developed" }

[dependencies]
clap = { version = "3.2", features = ["derive"] }
chrono = "0.4"
chrono-tz = "0.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
chrono-english = "0.1"
humantime = "2.1"
clap = { version = "4.0.7", features = ["derive"] }
chrono = "0.4.22"
chrono-tz = "0.6.3"
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.85"
chrono-english = "0.1.7"
humantime = "2.1.0"
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::converting::ConversionResult;
use chrono::prelude::*;
use clap::ArgEnum;
use clap::ValueEnum;

mod alfred;
mod converting;
Expand All @@ -11,7 +11,7 @@ pub enum OutputMode {
Alfred,
}

#[derive(PartialEq, Eq, Debug, Clone, Copy, ArgEnum)]
#[derive(PartialEq, Eq, Debug, Clone, Copy, ValueEnum)]
pub enum DurationUnit {
Milliseconds,
Seconds,
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ use timeturner::OutputMode;
#[derive(Debug, Parser)]
#[structopt(name = "timeturner", about = "Manipulate date-time strings")]
struct Opt {
#[clap(long, help = "Output in JSON for Alfred Workflow integration")]
#[arg(long, help = "Output in JSON for Alfred Workflow integration")]
alfred: bool,

#[clap(short, long, arg_enum)]
#[arg(short, long)]
duration_unit: Option<DurationUnit>,

input: Option<String>,
Expand Down

0 comments on commit 308b91e

Please sign in to comment.