From a09555b7d9f3f6d3fb6e5af05c897136b2deb73f Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 21 Jun 2024 09:00:22 +0900 Subject: [PATCH] remove FIREFISH_VERSION --- src/command/mod.rs | 2 +- src/command/version.rs | 8 +------- src/main.rs | 3 --- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/command/mod.rs b/src/command/mod.rs index 7e700a6..a88ec00 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -19,7 +19,7 @@ struct Args { #[derive(Subcommand)] enum Commands { - /// Print fishctl version and the corresponding Firefish version + /// Print fishctl version Version, /// Modify or validate the config files #[command(subcommand)] diff --git a/src/command/version.rs b/src/command/version.rs index 0c9ac19..7fb14d5 100644 --- a/src/command/version.rs +++ b/src/command/version.rs @@ -1,11 +1,5 @@ //! `version` subcommand -use color_print::cprintln; - pub(super) fn run() { - cprintln!("fishctl version: v{}", env!("CARGO_PKG_VERSION")); - cprintln!( - "The latest Firefish version as of this fishctl release: v{}", - crate::FIREFISH_VERSION - ); + println!("v{}", env!("CARGO_PKG_VERSION")); } diff --git a/src/main.rs b/src/main.rs index 49fa69f..bf84826 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,9 +4,6 @@ mod config; use color_print::cprintln; use std::process::ExitCode; -/// latest Firefish version as of this fishctl release -const FIREFISH_VERSION: &str = "20240613"; - #[tokio::main] async fn main() -> ExitCode { let res = command::run().await;