Skip to content

Commit 10dc877

Browse files
Paul Cwolfsoftwaresystemsltd
andcommitted
fix: WolfDisk --version now reads from Cargo.toml, bump to 2.7.4
The clap version was hardcoded to "2.2.4" instead of reading from Cargo.toml. Now uses env!("CARGO_PKG_VERSION") so --version always matches the Cargo.toml version. Bumped to 2.7.4. Co-Authored-By: CodeWolf <paul@wolf.uk.com> Co-Authored-By: Wolf Software Systems Ltd <paul@wolf.uk.com>
1 parent 9d746f9 commit 10dc877

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

wolfdisk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wolfdisk"
3-
version = "2.7.0"
3+
version = "2.7.4"
44
edition = "2021"
55
authors = ["Wolf Software Systems Ltd"]
66
description = "Distributed file system with replicated and shared storage modes"

wolfdisk/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use wolfdisk::{Config, fuse::WolfDiskFS, storage::{FileIndex, FileEntry, ChunkRe
1212
#[derive(Parser)]
1313
#[command(name = "wolfdisk")]
1414
#[command(author = "Wolf Software Systems Ltd")]
15-
#[command(version = "2.2.4")]
15+
#[command(version = env!("CARGO_PKG_VERSION"))]
1616
#[command(about = "Distributed file system with replicated and shared storage", long_about = None)]
1717
struct Cli {
1818
#[command(subcommand)]

0 commit comments

Comments
 (0)