Skip to content

Commit c088958

Browse files
author
LorenzoTettamanti
committed
[#94]: added uninstall command structure
1 parent 018de50 commit c088958

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

cli/src/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
mod essential;
22
mod install;
33
mod general;
4+
mod uninstall;
45

56
use clap::{ Error, Parser, Subcommand, Args };
67
use clap::command;
78
use tracing::debug;
89

910
use crate::essential::{ info, update_cli };
1011
use crate::install::install_cortexflow;
12+
use crate::uninstall::uninstall;
1113

1214
use crate::general::GeneralData;
1315

@@ -34,6 +36,8 @@ enum Commands {
3436
GetEnv,
3537
#[command(name="install")]
3638
Install,
39+
#[command(name="uninstall")]
40+
Uninstall,
3741
#[command(name="update")]
3842
Update,
3943
#[command(name="info")]
@@ -62,6 +66,10 @@ fn args_parser() -> Result<(), Error> {
6266
install_cortexflow();
6367
Ok(())
6468
}
69+
Some(Commands::Uninstall)=>{
70+
uninstall();
71+
Ok(())
72+
}
6573
Some(Commands::Update) => {
6674
update_cli();
6775
Ok(())

cli/src/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pub mod essential;
22
pub mod install;
3-
pub mod general;
3+
pub mod general;
4+
pub mod uninstall;

0 commit comments

Comments
 (0)