Skip to main content

PipelineContext

Struct PipelineContext 

Source
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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.