diff --git a/Cargo.lock b/Cargo.lock index a96c9da..03bf78c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -100,7 +100,7 @@ checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" [[package]] name = "bp" -version = "0.1.0" +version = "2.0.1" dependencies = [ "clap", "inquire", diff --git a/Cargo.toml b/Cargo.toml index a42288d..c14cdb7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bp" -version = "0.1.0" +version = "2.0.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/main.rs b/src/main.rs index 467fb80..de8e29a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,24 +4,21 @@ use tokio; use clap::{Parser, Subcommand}; use crate::git::{handle_git, GitCommand}; -const VERSION: &str = "2.0"; - #[derive(Subcommand)] enum Command { /// Various commands for creating and adding git repos to breadpi. Git { #[command(subcommand)] git_command: GitCommand - }, - - V + } } #[derive(Parser)] +#[command(version, about, long_about = None)] struct Cli { #[command(subcommand)] - command: Command + command: Command, } #[tokio::main] @@ -32,9 +29,5 @@ async fn main() { Command::Git { git_command } => { handle_git(&git_command).await; }, - - Command::V => { - println!("breadpi-client {VERSION}") - } } }