From b6e223a4ed009ecbb2c88261e65f7168d7515086 Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Sat, 17 Sep 2022 15:22:20 +0200 Subject: [PATCH] Bumps version to 0.1.2 Makes it so the .rs files pull the version info from the Cargo files so it is always consistent --- teos-common/Cargo.toml | 2 +- teos/Cargo.toml | 2 +- teos/src/cli_config.rs | 2 +- teos/src/config.rs | 2 +- watchtower-plugin/Cargo.toml | 2 +- watchtower-plugin/tests/pyproject.toml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/teos-common/Cargo.toml b/teos-common/Cargo.toml index 18bfabc..0ee03cf 100644 --- a/teos-common/Cargo.toml +++ b/teos-common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "teos-common" -version = "0.0.1" +version = "0.1.2" authors = ["Sergi Delgado Segura "] edition = "2018" diff --git a/teos/Cargo.toml b/teos/Cargo.toml index 30dafea..2e38098 100644 --- a/teos/Cargo.toml +++ b/teos/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "teos" -version = "0.0.1" +version = "0.1.2" authors = ["Sergi Delgado Segura "] license = "MIT" edition = "2018" diff --git a/teos/src/cli_config.rs b/teos/src/cli_config.rs index 4f93720..60adc5c 100644 --- a/teos/src/cli_config.rs +++ b/teos/src/cli_config.rs @@ -37,7 +37,7 @@ pub struct GetAppointmentsData { #[derive(StructOpt, Debug)] #[structopt(rename_all = "lowercase")] #[structopt( - version = "0.0.1", + version = env!("CARGO_PKG_VERSION"), about = "The Eye of Satoshi - CLI", name = "teos-cli" )] diff --git a/teos/src/config.rs b/teos/src/config.rs index 469c630..ec43d57 100644 --- a/teos/src/config.rs +++ b/teos/src/config.rs @@ -44,7 +44,7 @@ impl std::error::Error for ConfigError {} /// Holds all the command line options. #[derive(StructOpt, Debug, Clone)] #[structopt(rename_all = "lowercase")] -#[structopt(version = "0.0.1", about = "The Eye of Satoshi - Lightning watchtower")] +#[structopt(version = env!("CARGO_PKG_VERSION"), about = "The Eye of Satoshi - Lightning watchtower")] pub struct Opt { /// Address teos HTTP(s) API will bind to [default: localhost] #[structopt(long)] diff --git a/watchtower-plugin/Cargo.toml b/watchtower-plugin/Cargo.toml index df19470..ae864f2 100755 --- a/watchtower-plugin/Cargo.toml +++ b/watchtower-plugin/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "watchtower-plugin" -version = "0.1.0" +version = "0.1.2" authors = ["Sergi Delgado Segura "] license = "MIT" edition = "2018" diff --git a/watchtower-plugin/tests/pyproject.toml b/watchtower-plugin/tests/pyproject.toml index 7ca3164..c81b8b0 100644 --- a/watchtower-plugin/tests/pyproject.toml +++ b/watchtower-plugin/tests/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tests" -version = "0.1.0" +version = "0.1.2" description = "watchtower-plugin tests" authors = ["Sergi Delgado Segura "] license = "MIT"