Skip to content

Commit

Permalink
Release version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
julian.pieles committed Sep 30, 2024
1 parent 2648351 commit f606510
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 3 deletions.
102 changes: 101 additions & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct Args {
watch: Option<String>,

/// The providers to use (comma-separated list)
#[arg(short, long)]
#[arg(short = 'r', long)]
providers: Option<String>,
}

Expand Down Expand Up @@ -129,7 +129,7 @@ async fn send_ntfy_notification(client: &reqwest::Client, provider: &PushProvide
Ok(())
}

fn select_providers(config: &Config, cli_providers: Option<&str>) -> Vec<&PushProvider> {
fn select_providers<'a>(config: &'a Config, cli_providers: Option<&'a str>) -> Vec<&'a PushProvider> {
match cli_providers {
Some(providers) => providers
.split(',')
Expand Down

0 comments on commit f606510

Please sign in to comment.