Documentation
1
2
3
4
5
6
7
8
use crate::share::exec;

pub fn download(zip_path: &str, destination_path: &str) -> bool {
    let shell =
        format!("Expand-Archive -Path {zip_path} -DestinationPath  {destination_path} -Force");
    let output = exec(&shell).expect("Failed to execute powershell command");
    output.status.success()
}