commit-wizard 0.0.1

A lightweight CLI assistant for Conventional Commits, semantic versioning, and changelog automation.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::domain::commit::CommitType;
use anyhow::Result;

pub trait PromptPort {
    fn ask_type(&self) -> Result<CommitType>;
    fn ask_scope(&self) -> Result<Option<String>>;
    fn ask_summary(&self) -> Result<String>;
    fn ask_body(&self) -> Result<Option<String>>;
    fn confirm_breaking(&self) -> Result<bool>;
}