Added version command
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -22,8 +22,11 @@ struct Cli {
|
||||
|
||||
#[derive(Subcommand)]
|
||||
enum Commands {
|
||||
/// displays version info about this program
|
||||
// Runs the setup command
|
||||
Setup {},
|
||||
|
||||
// Displays version info about the program
|
||||
Version {},
|
||||
}
|
||||
|
||||
fn main() {
|
||||
@@ -37,6 +40,7 @@ fn main() {
|
||||
match &cli.command {
|
||||
// sub-commands will be handled here
|
||||
Some(Commands::Setup {}) => cmd::core::setup_command(),
|
||||
Some(Commands::Version {}) => cmd::core::version_command(),
|
||||
|
||||
// run the main program without any commands
|
||||
None => {
|
||||
|
Reference in New Issue
Block a user