pub trait ReleaseStrategy: Send + Sync {
// Required methods
fn plan(&self) -> Result<ReleasePlan, ReleaseError>;
fn execute(
&self,
plan: &ReleasePlan,
dry_run: bool,
) -> Result<(), ReleaseError>;
}Expand description
Orchestrates the release flow.
Required Methods§
Sourcefn plan(&self) -> Result<ReleasePlan, ReleaseError>
fn plan(&self) -> Result<ReleasePlan, ReleaseError>
Plan the release without executing it.
Sourcefn execute(&self, plan: &ReleasePlan, dry_run: bool) -> Result<(), ReleaseError>
fn execute(&self, plan: &ReleasePlan, dry_run: bool) -> Result<(), ReleaseError>
Execute the release.