Show version in cli

This commit is contained in:
2021-10-19 18:00:18 +02:00
parent 905452e91b
commit 37498f5b33
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -42,7 +42,7 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]] [[package]]
name = "butterup" name = "butterup"
version = "0.1.0" version = "1.0.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"chrono", "chrono",

View File

@ -1,7 +1,7 @@
[package] [package]
name = "butterup" name = "butterup"
description = "Backup btrfs snapshots over SSH" description = "Backup btrfs snapshots over SSH"
version = "0.1.0" version = "1.0.0"
authors = ["Joakim Hulthe <joakim@hulthe.net>"] authors = ["Joakim Hulthe <joakim@hulthe.net>"]
license = "MPL-2.0" license = "MPL-2.0"
edition = "2018" edition = "2018"

View File

@ -10,7 +10,7 @@ mod util;
use actions::{list, show_plan, sync}; use actions::{list, show_plan, sync};
use chrono::{DateTime, FixedOffset}; use chrono::{DateTime, FixedOffset};
use clap::{AppSettings, Clap}; use clap::{crate_version, AppSettings, Clap};
use remote::Remote; use remote::Remote;
use std::collections::BTreeMap; use std::collections::BTreeMap;
use std::path::PathBuf; use std::path::PathBuf;
@ -20,7 +20,7 @@ pub type FileList = BTreeMap<TimeStamp, String>;
/// Backup btrfs snapshots over SSH /// Backup btrfs snapshots over SSH
#[derive(Clap)] #[derive(Clap)]
#[clap(setting = AppSettings::ColoredHelp)] #[clap(version = crate_version!(), setting = AppSettings::ColoredHelp)]
pub struct Opt { pub struct Opt {
/// The path of the backup directory on the local filesystem /// The path of the backup directory on the local filesystem
#[clap(short = 'l', long)] #[clap(short = 'l', long)]