Struct cocogitto::CocoGitto

source ·
pub struct CocoGitto { /* private fields */ }

Implementations§

source§

impl CocoGitto

source

pub fn create_monorepo_version(&mut self, opts: BumpOptions<'_>) -> Result<()>

source

pub fn create_all_package_version_auto( &mut self, opts: BumpOptions<'_> ) -> Result<()>

source§

impl CocoGitto

source

pub fn create_package_version( &mut self, opts: PackageBumpOptions<'_> ) -> Result<()>

source§

impl CocoGitto

source

pub fn create_version(&mut self, opts: BumpOptions<'_>) -> Result<()>

source§

impl CocoGitto

source

pub fn unwrap_or_stash_and_exit<T>(&mut self, tag: &Tag, result: Result<T>) -> T

source

pub fn get_changelog_with_target_version( &self, pattern: &str, tag: Tag ) -> Result<Release<'_>>

The target version is not created yet when generating the changelog.

source

pub fn get_package_changelog_with_target_version( &self, pattern: &str, tag: Tag, package: &str ) -> Result<Release<'_>>

The target package version is not created yet when generating the changelog.

source

pub fn get_monorepo_global_changelog_for_version( &self, pattern: &str, from: OidOf, tag: Tag ) -> Result<Release<'_>>

The target global monorepo version is not created yet when generating the changelog.

source§

impl CocoGitto

source

pub fn get_changelog( &self, pattern: &str, _with_child_releases: bool ) -> Result<Release<'_>>

§Get a changelog between two oids
  • from default value:latest tag or else first commit
  • to default value:HEAD or else first commit
source

pub fn get_changelog_at_tag( &self, tag: &str, template: Template ) -> Result<String>

source§

impl CocoGitto

source

pub fn check( &self, check_from_latest_tag: bool, ignore_merge_commits: bool, range: Option<String> ) -> Result<()>

source§

impl CocoGitto

source

pub fn conventional_commit(&self, opts: CommitOptions<'_>) -> Result<()>

source§

impl CocoGitto

source

pub fn check_and_edit(&self, from_latest_tag: bool) -> Result<()>

source§

impl CocoGitto

source

pub fn get_latest_version( &self, fallback: Option<String>, package: Option<String> ) -> Result<()>

source§

impl CocoGitto

source

pub fn install_all_hooks(&self, overwrite_existing_hooks: bool) -> Result<()>

source

pub fn install_git_hooks( &self, overwrite_existing_hooks: bool, hook_types: Vec<GitHookType> ) -> Result<()>

source§

impl CocoGitto

source

pub fn get_log(&self, filters: CommitFilters) -> Result<String>

source

pub fn get_repo_tag_name(&self) -> Option<String>

source§

impl CocoGitto

source

pub fn get() -> Result<Self>

source

pub fn get_committer(&self) -> Result<String, Git2Error>

source

pub fn get_conventional_message( commit_type: &str, scope: Option<String>, summary: String, body: Option<String>, footer: Option<String>, is_breaking_change: bool ) -> Result<String>

Tries to get a commit message conforming to the Conventional Commit spec. If the commit message does not conform, None is returned instead.

source

pub fn run_commit_hook(&self, hook: CommitHook) -> Result<(), Git2Error>

source

pub fn prepare_edit_message_path(&self) -> PathBuf

source

pub fn clear_cache(&self)

Trait Implementations§

source§

impl Debug for CocoGitto

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

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

§

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

§

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

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V