pub struct Env {
pub store: PathBuf,
pub state: PathBuf,
pub plan_root: Result<PathBuf, String>,
pub claude_plans: PathBuf,
pub git: Option<Result<Vec<PathBuf>, String>>,
}Expand description
Everything the sweep reads, so a test can point it at a scratch tree.
Fields§
§store: PathBufattestations/.
state: PathBufBeside the journal: the stamp and the lock live here.
plan_root: Result<PathBuf, String>The directory repositories sit under; Err when it cannot be resolved.
claude_plans: PathBuf~/.claude/plans.
git: Option<Result<Vec<PathBuf>, String>>The configured plan-review.<name>.path roots. None asks git, which
is the only subprocess the sweep runs; a test passes its own answer.
Implementations§
Auto Trait Implementations§
impl Freeze for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnsafeUnpin for Env
impl UnwindSafe for Env
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