Skip to content

Commit

Permalink
manifest typo, and plural time unit
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerrilees committed Aug 20, 2023
1 parent 1b9c55e commit ffe96f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
license = "MIT"
repository = "https://github.com/henry-merrilees/prac"
homepage = "https://github.com/henry-merrilees/prac"
keyworks = ["productivity", "cli", "practice"]
keywords = ["productivity", "cli", "practice"]
categories = ["command-line-utilities"]


Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! # UI demo + TLDR
//! Let's say we'd like to set a new practice of making a weekly repo, well... every week.
//! ```bash
//! prac add "weekly repo" 1 weeks
//! prac add "weekly repo" 1 week
//! ```
//! Now, we can view "weekly repo" alongside all our practices.
//! ```bash
Expand Down Expand Up @@ -245,7 +245,7 @@ enum SubCommand {
/// Some notes to outline goals and log progress. Opens `$EDITOR` if not provided.
#[arg(short, long)]
notes: Option<String>,
/// Anticipated time period between practice sessions. (There is a 2 hr grace period by default.)
/// Anticipated time period between practice sessions (There is a 2 hr grace period by default)
period: f64,
#[arg(value_enum)]
time_unit: TimeUnit,
Expand Down
6 changes: 6 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ use anyhow::{Context, Result};
/// A unit of time.
#[derive(ValueEnum, Clone, Serialize, Deserialize)]
pub enum TimeUnit {
#[clap(alias = "minutes")]
Minutes,
#[clap(alias = "hour")]
Hours,
#[clap(alias = "day")]
Days,
#[clap(alias = "week")]
Weeks,
#[clap(alias = "month")]
Months,
#[clap(alias = "year")]
Years,
}

Expand Down

0 comments on commit ffe96f1

Please sign in to comment.