Skip to main content

load_custom_package

Function load_custom_package 

Source
pub fn load_custom_package(
    home: &Path,
    name: &str,
) -> Result<Option<Arc<CustomPackage>>, RippyError>
Expand description

Load a single custom package by name from ~/.rippy/packages/<name>.toml.

Returns Ok(None) if no such file exists. Returns Err when the file exists but cannot be read or contains malformed TOML.

§Errors

Returns RippyError::Config if the file is malformed or unreadable.