pub struct AppPaths;Expand description
Standardized application directories for Steer.
- Project-level: ./.steer
- User-level config: uses OS-specific dirs
- User-level data: uses OS-specific dirs
Implementations§
Source§impl AppPaths
impl AppPaths
Sourcepub fn project_dir() -> PathBuf
pub fn project_dir() -> PathBuf
Return the project-level .steer directory (relative to current working dir)
Sourcepub fn project_catalog() -> PathBuf
pub fn project_catalog() -> PathBuf
Return the project-level catalog path: ./.steer/catalog.toml
Sourcepub fn user_config_dir() -> Option<PathBuf>
pub fn user_config_dir() -> Option<PathBuf>
Return the user-level config directory (platform-specific)
Sourcepub fn user_data_dir() -> Option<PathBuf>
pub fn user_data_dir() -> Option<PathBuf>
Return the user-level data directory (platform-specific)
Sourcepub fn local_environment_root() -> PathBuf
pub fn local_environment_root() -> PathBuf
Return the local environment root for storing workspace registry and managed workspaces. Can be overridden with STEER_ENV_ROOT.
Sourcepub fn user_catalog() -> Option<PathBuf>
pub fn user_catalog() -> Option<PathBuf>
Return the user-level catalog path (platform-specific)
Sourcepub fn discover_catalogs() -> Vec<PathBuf>
pub fn discover_catalogs() -> Vec<PathBuf>
Standard discovery order for catalog files Project catalog first, then user catalog
Sourcepub fn discover_session_configs() -> Vec<PathBuf>
pub fn discover_session_configs() -> Vec<PathBuf>
Standard discovery order for session config files.
Auto Trait Implementations§
impl Freeze for AppPaths
impl RefUnwindSafe for AppPaths
impl Send for AppPaths
impl Sync for AppPaths
impl Unpin for AppPaths
impl UnwindSafe for AppPaths
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> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request