git-helpe-rs 1.0.5

CLI helpers for formatting commits and branches, to make my daily work easier. Moderatly fast.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use anyhow::Result;
use clap_complete::{generate_to, shells::Bash};
use std::path::PathBuf;

use crate::cli::define::build_cli_commands;

pub fn generate(path: PathBuf) -> Result<()> {
    let mut cmd = build_cli_commands();
    let path = generate_to(Bash, &mut cmd, "git-helpe-rs", path)?;

    println!("completion file has been generated into: {path:?}");

    Ok(())
}