hyper-jump 0.11.0

A generalist all-in-one command-line version manager toolset for a more efficient development workflow.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use tracing::info;

use crate::ports::Fs;
use crate::ports::RootDir;

pub async fn erase(root: &impl RootDir, fs: &impl Fs) -> anyhow::Result<()> {
    let root_dir = root.root_dir().await?;

    if fs.remove_dir_all(&root_dir).await.is_ok() {
        info!("Successfully removed hyper-jump installation folder");
    } else {
        info!("No hyper-jump installation or downloads folder to remove");
    }

    Ok(())
}