From abb36db84e33c36fa6102496dcb00111d180aaca Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Thu, 31 Oct 2024 18:23:02 +0700 Subject: [PATCH] add version in clap --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- src/main.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 72b3253..076f866 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,7 +111,7 @@ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" [[package]] name = "portgen" -version = "0.1.0" +version = "0.6.2" dependencies = [ "clap", ] diff --git a/Cargo.toml b/Cargo.toml index 2da0c13..9cc7ce7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "portgen" -version = "0.1.0" +version = "0.6.2" edition = "2021" [dependencies] diff --git a/README.md b/README.md index 79489d7..4caaaee 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Port number generator for substrate node naming conventions. ## install ```sh -curl -L https://github.com/rotkonetworks/portgen/releases/download/v0.6.1/portgen -o portgen && chmod +x portgen && sudo mv portgen /usr/local/bin/ +curl -L https://github.com/rotkonetworks/portgen/releases/download/v0.6.2/portgen -o portgen && chmod +x portgen && sudo mv portgen /usr/local/bin/ ``` ## usage example diff --git a/src/main.rs b/src/main.rs index d8de236..51684ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use std::{fmt, net::Ipv4Addr, str::FromStr}; const PORT_BASE: u16 = 30000; #[derive(Parser)] -#[command(name = "portgen", about = "Generate port numbers and IP addresses for substrate nodes", version = "0.6.1")] +#[command(name = "portgen", about = "Generate port numbers and IP addresses for substrate nodes", version = "0.6.2")] #[command(after_help = "\ Examples: # Relay chain nodes