scoop-shim

Crates.ioscoop-shim
lib.rsscoop-shim
version0.1.1
sourcesrc
created_at2024-10-25 10:27:41.269136
updated_at2024-10-27 02:43:34.998008
descriptionA simple parser and serializer for Scoop shims
homepage
repositoryhttps://github.com/winpax/scoop-shim/tree/trunk
max_upload_size
id1422319
size25,298
Libraries (github:winpax:libraries)

documentation

README

Scoop Shims

Usage

use scoop_shim::Shim;

// Serialize a shim
let shim = Shim::new(
    std::path::PathBuf::from("sfsu.exe"),
    vec!["search".to_string()],
);

shim.to_string(); // "path = \"sfsu.exe\"\r\nargs = search"

// Deserialize a shim
let shim = scoop_shim::from_str("path = \"sfsu.exe\"\r\nargs = search").unwrap();

assert_eq!(shim.path(), std::path::PathBuf::from("sfsu.exe"));
assert_eq!(shim.args(), ["search".to_string()]);

Made with 💗 by Juliette Cordor

Commit count: 0

cargo fmt