pub struct Context {
pub root: PathBuf,
pub identity: Identity,
/* private fields */
}Expand description
Shared context for CLI commands.
Fields§
§root: PathBuf§identity: IdentityImplementations§
Source§impl Context
impl Context
Sourcepub fn load() -> Result<Self, JoyError>
pub fn load() -> Result<Self, JoyError>
Load context from the current directory. Finds the project root, resolves identity from session or git email, and loads Guard with gate config.
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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