update verison
This commit is contained in:
13
src/main.rs
13
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}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user