pub trait ReleaseReporter: Send + Sync {
// Required method
fn report_bump(
&self,
package: &str,
old: Option<&str>,
new: &str,
dry_run: bool,
);
}Expand description
Trait for reporting release version bumps.
This trait allows the core library to report release operations without directly writing to stdout/stderr, maintaining separation of concerns.
Required Methods§
Sourcefn report_bump(
&self,
package: &str,
old: Option<&str>,
new: &str,
dry_run: bool,
)
fn report_bump( &self, package: &str, old: Option<&str>, new: &str, dry_run: bool, )
Reports a version bump operation.
§Arguments
package- The package name being bumpedold- The old version, if it existednew- The new version after bumpdry_run- Whether this is a dry run (no actual changes made)