pub trait Directorieswhere
    Self: Sized,
{ type Error: Error; fn new() -> Result<Self, Self::Error>; fn projects_db(&self) -> PathBuf; fn src(&self) -> PathBuf; fn git(&self) -> PathBuf; fn old(&self) -> PathBuf; }
Expand description

A trait to standarize the directories that are used in the crate

Required Associated Types§

An error that you can return while creating the implementor of PMDirs

Required Methods§

new the object that implements this trait

where to look path for a projects db.

Where to store all the projects code that is going to be built

Where to do the git operations. It is separated because this way if git operations fail you can still have a buildable program

Where to store old copies of the projects

Implementors§