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;