Skip to content

Commit

Permalink
feat(hok): reflect basic support of uninstalling packages
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Aug 8, 2023
1 parent b1f0f6b commit 183cfd8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/cmd/uninstall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,30 @@ pub fn cmd_uninstall(matches: &ArgMatches, session: &Session) -> Result<()> {
}
}
}
Event::PackageCommitStart(ctx) => {
println!("Uninstalling {}...", ctx);
}
Event::PackageShortcutRemoveProgress(ctx) => {
println!("Removing shortcut {}", ctx);
}
Event::PackageShimRemoveProgress(ctx) => {
println!("Removing shim '{}'", ctx);
}
Event::PackagePersistPurgeStart => {
println!("Removing persisted data...");
}
Event::PackageCommitDone(ctx) => {
let msg = format!("'{}' was uninstalled.", ctx);
println!("{}", msg.dark_green());
}
Event::PackageSyncDone => break,
_ => {}
}
}
});

operation::package_sync(session, queries, options)?;

handle.join().unwrap();

eprintln!("Not implemented yet.");
Ok(())
}

0 comments on commit 183cfd8

Please sign in to comment.