pub struct PipelineContext {Show 13 fields
pub args: Args,
pub config: Config,
pub registry: AgentRegistry,
pub developer_agent: String,
pub reviewer_agent: String,
pub developer_display: String,
pub reviewer_display: String,
pub repo_root: PathBuf,
pub workspace: Arc<dyn Workspace>,
pub logger: Logger,
pub colors: Colors,
pub template_context: TemplateContext,
pub executor: Arc<dyn ProcessExecutor>,
}Expand description
Context for running the pipeline.
Groups together the various parameters needed to run the development/review/commit pipeline, reducing function parameter count and improving maintainability.
Fields§
§args: Args§config: Config§registry: AgentRegistry§developer_agent: String§reviewer_agent: String§developer_display: String§reviewer_display: String§repo_root: PathBuf§workspace: Arc<dyn Workspace>Workspace for explicit path resolution (no CWD dependency).
Uses Arc<dyn Workspace> for proper dependency injection:
- Production code passes
Arc::new(WorkspaceFs::new(...)) - Tests can pass
Arc::new(MemoryWorkspace::new(...))
logger: Logger§colors: Colors§template_context: TemplateContext§executor: Arc<dyn ProcessExecutor>Auto Trait Implementations§
impl Freeze for PipelineContext
impl !RefUnwindSafe for PipelineContext
impl Send for PipelineContext
impl Sync for PipelineContext
impl Unpin for PipelineContext
impl !UnwindSafe for PipelineContext
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> 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