pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
Sourcepub fn with_codex_home(self, dir: String) -> Context
pub fn with_codex_home(self, dir: String) -> Context
Where Codex keeps its login. Empty means unset, as Codex reads it.
pub fn with_pitboard_home(self, dir: PathBuf) -> Context
Sourcepub fn claude_program(&self) -> &Path
pub fn claude_program(&self) -> &Path
The claude Pitboard would run to sign someone in.
Sourcepub fn codex_program(&self) -> &Path
pub fn codex_program(&self) -> &Path
The codex Pitboard would run to sign someone in.
Sourcepub fn schedule_program(&self) -> Option<&Path>
pub fn schedule_program(&self) -> Option<&Path>
The Pitboard the daily renewal schedule is written to run, where one was named.
Sourcepub fn started_by_the_schedule(self) -> Context
pub fn started_by_the_schedule(self) -> Context
Say this process is a run of the daily renewal schedule, as the marker its job is
started with says where what the system says of the job it started is not to be
relied on: the command line does this for pitboard renew --scheduled. Such a run
renews the default home whatever PITBOARD_HOME says
(crate::schedule::SCHEDULED_RUN).
pub fn program_for(&self, tool: ProviderId) -> Option<&Path>
Sourcepub fn for_command_line(env: &Environment) -> Context
pub fn for_command_line(env: &Environment) -> Context
The command line’s context, from the environment it was started with: a shell’s, so
each tool’s program is looked for on its PATH when it runs.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Context
impl !UnwindSafe for Context
impl Freeze for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin 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