pub struct ProjectPaths {
pub repo_root: PathBuf,
pub kimetsu_dir: PathBuf,
pub project_toml: PathBuf,
pub brain_db: PathBuf,
pub project_log: PathBuf,
pub runs_dir: PathBuf,
pub lock_file: PathBuf,
}Fields§
§repo_root: PathBuf§kimetsu_dir: PathBuf§project_toml: PathBuf§brain_db: PathBuf§project_log: PathBuf§runs_dir: PathBuf§lock_file: PathBufImplementations§
Source§impl ProjectPaths
impl ProjectPaths
pub fn discover(start: impl AsRef<Path>) -> KimetsuResult<Self>
Sourcepub fn at_root(repo_root: impl Into<PathBuf>) -> Self
pub fn at_root(repo_root: impl Into<PathBuf>) -> Self
Build the paths anchored at an explicit repo_root, WITHOUT
climbing to an enclosing git repository. Use this when a command
is told exactly which directory to operate on (e.g. the install
wizard’s --workspace), so it never writes into a parent repo.
Trait Implementations§
Source§impl Clone for ProjectPaths
impl Clone for ProjectPaths
Source§fn clone(&self) -> ProjectPaths
fn clone(&self) -> ProjectPaths
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProjectPaths
impl RefUnwindSafe for ProjectPaths
impl Send for ProjectPaths
impl Sync for ProjectPaths
impl Unpin for ProjectPaths
impl UnsafeUnpin for ProjectPaths
impl UnwindSafe for ProjectPaths
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more