Skip to main content

ChangeSetManager

Struct ChangeSetManager 

Source
pub struct ChangeSetManager {
    pub changes_dir: PathBuf,
}
Expand description

Change set manager.

Fields§

§changes_dir: PathBuf

The directory where change sets are stored.

Implementations§

Source§

impl ChangeSetManager

Source

pub fn new(changes_dir: &Path) -> Self

Creates a new change set manager.

Source

pub fn create_change_set(&self, change_set: &ChangeSet) -> Result<PathBuf>

Creates a new change set.

Source

pub fn read_change_sets(&self) -> Result<Vec<ChangeSet>>

Reads all change sets from the changes directory.

Source

pub fn generate_changelog(&self, version: &str, date: &str) -> Result<String>

Generates a changelog from the change sets.

Source

pub fn clear_change_sets(&self) -> Result<()>

Clears all change sets after generating a changelog.

Source

pub fn merge_change_sets(&self, change_sets: &[ChangeSet]) -> Result<ChangeSet>

Merges multiple change sets into a single change set.

Source

pub fn resolve_conflicts( &self, change_sets: &[ChangeSet], ) -> Result<Vec<ChangeSet>>

Resolves conflicts between change sets.

Source

pub fn load_template(&self, template_name: &str) -> Result<ChangeSetTemplate>

Loads a change set template.

Source

pub fn save_template(&self, template: &ChangeSetTemplate) -> Result<()>

Saves a change set template.

Source

pub fn load_preset(&self, preset_name: &str) -> Result<ChangeSetPreset>

Loads a change set preset.

Source

pub fn save_preset(&self, preset: &ChangeSetPreset) -> Result<()>

Saves a change set preset.

Source

pub fn create_change_set_from_template( &self, template_name: &str, summary: &str, author: Option<String>, ) -> Result<PathBuf>

Creates a change set from a template.

Source

pub fn create_change_set_from_preset( &self, preset_name: &str, summary: &str, author: Option<String>, ) -> Result<PathBuf>

Creates a change set from a preset.

Source

pub fn generate_enhanced_changelog( &self, version: &str, date: &str, include_authors: bool, ) -> Result<String>

Generates an enhanced changelog with more details.

Source

pub fn get_change_stats(&self) -> Result<ChangeStats>

Gets change statistics for all change sets.

Source

pub fn analyze_change_trend(&self, time_period: &str) -> Result<ChangeTrend>

Analyzes change trends over a specified time period.

Source

pub fn generate_change_report(&self, time_period: &str) -> Result<String>

Generates a comprehensive change report including statistics and trends.

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> 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.