pub struct ConfigPaths {
pub defaults_dir: Option<PathBuf>,
pub install_dir: Option<PathBuf>,
pub project_dir: Option<PathBuf>,
pub project_dir_deprecated: Option<PathBuf>,
pub user_dir: Option<PathBuf>,
}Expand description
Paths for each configuration tier.
Fields§
§defaults_dir: Option<PathBuf>Embedded defaults directory (not a real path, but conceptual)
install_dir: Option<PathBuf>Install/package config directory (e.g., $CWD/config/ for built-in workflows)
project_dir: Option<PathBuf>Project-level config directory
project_dir_deprecated: Option<PathBuf>Deprecated project-level config directory (.task-graph)
user_dir: Option<PathBuf>User-level config directory
Implementations§
Source§impl ConfigPaths
impl ConfigPaths
Sourcepub fn with_dirs(
project_dir: Option<PathBuf>,
user_dir: Option<PathBuf>,
) -> Self
pub fn with_dirs( project_dir: Option<PathBuf>, user_dir: Option<PathBuf>, ) -> Self
Create paths with explicit directories. Does not include install_dir (use with_all_dirs for full control).
Sourcepub fn with_all_dirs(
install_dir: Option<PathBuf>,
project_dir: Option<PathBuf>,
user_dir: Option<PathBuf>,
) -> Self
pub fn with_all_dirs( install_dir: Option<PathBuf>, project_dir: Option<PathBuf>, user_dir: Option<PathBuf>, ) -> Self
Create paths with all directories explicitly specified.
Sourcepub fn effective_project_dir(&self) -> Option<&Path>
pub fn effective_project_dir(&self) -> Option<&Path>
Get the effective project directory (prefers new location, falls back to deprecated).
Sourcepub fn is_using_deprecated(&self) -> bool
pub fn is_using_deprecated(&self) -> bool
Check if using deprecated project directory.
Trait Implementations§
Source§impl Clone for ConfigPaths
impl Clone for ConfigPaths
Source§fn clone(&self) -> ConfigPaths
fn clone(&self) -> ConfigPaths
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigPaths
impl Debug for ConfigPaths
Auto Trait Implementations§
impl Freeze for ConfigPaths
impl RefUnwindSafe for ConfigPaths
impl Send for ConfigPaths
impl Sync for ConfigPaths
impl Unpin for ConfigPaths
impl UnwindSafe for ConfigPaths
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more