Compare commits

..

2 commits

Author SHA1 Message Date
d62fd468ff refactor: hide the sound option behind the sound feature
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m43s
2024-07-12 19:15:58 +02:00
daa764cb96 feat(notify): make sound be on by default #15 2024-07-12 19:15:14 +02:00

View file

@ -78,7 +78,8 @@ pub struct Clock {
#[clap(short = 'u', long, value_parser = humantime::parse_duration)] #[clap(short = 'u', long, value_parser = humantime::parse_duration)]
pub countdown: Option<std::time::Duration>, pub countdown: Option<std::time::Duration>,
/// Play a notification sound when the countdown is up /// Play a notification sound when the countdown is up
#[clap(short, long)] #[cfg(feature = "sound")]
#[clap(short, long, default_value_t = true)]
pub sound: bool, pub sound: bool,
// internal variables // internal variables