From 6faafdd7ae1ca22025e7761184d0a9b5a8a05a83 Mon Sep 17 00:00:00 2001 From: Quantum Date: Tue, 15 Oct 2024 02:18:34 -0400 Subject: [PATCH] Bump version to 0.1.2 and add cargo metadata --- Cargo.lock | 2 +- Cargo.toml | 10 +++++++++- src/main.rs | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ead734f..3561acf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -592,7 +592,7 @@ dependencies = [ [[package]] name = "ntfy-run" -version = "0.1.1" +version = "0.1.2" dependencies = [ "clap", "itertools", diff --git a/Cargo.toml b/Cargo.toml index c4da515..6a92c78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,15 @@ [package] name = "ntfy-run" -version = "0.1.1" +version = "0.1.2" edition = "2021" +authors = ["Quantum "] +description = "ntfy-run is a tool to run a command, capture its output, and send it to a ntfy server." +readme = "README.md" +homepage = "https://github.com/quantum5/ntfy-run" +repository = "https://github.com/quantum5/ntfy-run" +license = "GPL-3" +keywords = ["ntfy", "cron", "notifications", "utility"] +categories = ["command-line-interface"] [dependencies] clap = { version = "4.5.20", features = ["derive", "env"] } diff --git a/src/main.rs b/src/main.rs index 33127a4..981ad01 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ mod runner; mod tap_stream; #[derive(Parser)] -/// Tool to run a command, capture its output, and send it to ntfy. +#[command(version, about)] struct Cli { /// URL of the ntfy server and topic, e.g. https://ntfy.sh/topic #[arg(short = 'n', long = "ntfy-url", env = "NTFY_URL", alias = "url")]