Crate depy

source ·
Expand description

Depy is a program that interacts with the scoop package manager and atttempts to make clean installations of programs without modifying the use PATH or leaving residual files on your system

§Examples:

installing from a depy.json file:

use depy::{package, parsing, shell};
 
fn main() -> Result<(), Box<dyn std::error::Error>> {
    shell::install::init_depy()?;
 
    // all this does is that is parses a json to a serde_json::Value object
    let json_value = parsing::parse_json::read_json_file("./depy.json")?;
 
    // returns scoop packages to be installed from `./depy.json`
    let packages = package::Package::multiple_packages_from_json(&json_value)?;
 
    // installs all the packages using scoop
    shell::install::install(packages)?;
    Ok(())
}

Modules§

  • This module is the struct representation of a scoop package
  • This module has a variety of functions that operate on json files (including package manifests)
  • This module is responsable for system related operations like powershell or the file system