pub struct GitHooksGenerator { /* private fields */ }Implementations§
Source§impl GitHooksGenerator
impl GitHooksGenerator
pub fn new(target_dir: PathBuf) -> Self
pub async fn generate_ruby_hooks( &self, template: &str, force: bool, ) -> Result<(), ZackstrapError>
pub async fn generate_python_hooks( &self, template: &str, force: bool, ) -> Result<(), ZackstrapError>
pub async fn generate_node_hooks( &self, template: &str, force: bool, ) -> Result<(), ZackstrapError>
pub async fn generate_go_hooks( &self, template: &str, force: bool, ) -> Result<(), ZackstrapError>
pub async fn generate_rust_hooks( &self, template: &str, force: bool, ) -> Result<(), ZackstrapError>
pub async fn generate_bash_hooks( &self, template: &str, force: bool, ) -> Result<(), ZackstrapError>
pub async fn generate_basic_hooks( &self, force: bool, ) -> Result<(), ZackstrapError>
Auto Trait Implementations§
impl Freeze for GitHooksGenerator
impl RefUnwindSafe for GitHooksGenerator
impl Send for GitHooksGenerator
impl Sync for GitHooksGenerator
impl Unpin for GitHooksGenerator
impl UnsafeUnpin for GitHooksGenerator
impl UnwindSafe for GitHooksGenerator
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