pub struct CommitGenerationConfig<'a> {
pub config: &'a Config,
pub template_context: &'a TemplateContext,
pub workspace: &'a dyn Workspace,
pub registry: &'a AgentRegistry,
pub logger: &'a Logger,
pub colors: Colors,
pub developer_agent: &'a str,
pub _reviewer_agent: &'a str,
pub executor: Arc<dyn ProcessExecutor>,
}Expand description
Configuration for commit message generation in plumbing commands.
Groups related parameters for handle_generate_commit_msg to avoid
excessive function arguments.
Fields§
§config: &'a ConfigThe pipeline configuration.
template_context: &'a TemplateContextTemplate context for prompt expansion.
workspace: &'a dyn WorkspaceWorkspace for file operations (trait object for DI).
registry: &'a AgentRegistryAgent registry for accessing configured agents.
logger: &'a LoggerLogger for info/warning messages.
colors: ColorsColor configuration for output.
developer_agent: &'a strName of the developer agent to use for commit generation.
_reviewer_agent: &'a strName of the reviewer agent (not used, kept for API compatibility).
executor: Arc<dyn ProcessExecutor>Process executor for external command execution.
Auto Trait Implementations§
impl<'a> Freeze for CommitGenerationConfig<'a>
impl<'a> !RefUnwindSafe for CommitGenerationConfig<'a>
impl<'a> Send for CommitGenerationConfig<'a>
impl<'a> Sync for CommitGenerationConfig<'a>
impl<'a> Unpin for CommitGenerationConfig<'a>
impl<'a> !UnwindSafe for CommitGenerationConfig<'a>
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