remove FIREFISH_VERSION

This commit is contained in:
naskya 2024-06-21 09:00:22 +09:00
parent 25c242f94a
commit a09555b7d9
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
3 changed files with 2 additions and 11 deletions

View file

@ -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)]

View file

@ -1,11 +1,5 @@
//! `version` subcommand
use color_print::cprintln;
pub(super) fn run() {
cprintln!("fishctl version: <bold>v{}</>", env!("CARGO_PKG_VERSION"));
cprintln!(
"The latest Firefish version as of this fishctl release: <bold>v{}</>",
crate::FIREFISH_VERSION
);
println!("v{}", env!("CARGO_PKG_VERSION"));
}

View file

@ -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;