simple-commit 1.0.2

A little CLI written in rust to improve your dirty commits into conventional ones.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use promptuity::themes::FancyTheme;
use promptuity::{Promptuity, Term, Terminal, Theme};

/// Generates the config for the TUI
///
/// Returns a [`RenderConfig`] from the inquire TUI.
pub fn generate_prompt<'a, W>(
    term: &'a mut dyn Terminal<W>,
    theme: &'a mut dyn Theme<W>,
) -> Promptuity<'a, W>
where
    W: std::io::Write,
{
    Promptuity::new(term, theme)
}
pub fn generate_config() -> (Term<std::io::Stderr>, FancyTheme) {
    (Term::default(), FancyTheme::default())
}