commit-wizard 0.0.1

A lightweight CLI assistant for Conventional Commits, semantic versioning, and changelog automation.
Documentation
use crate::{domain::commit::CommitType, ports::prompt::PromptPort};
use anyhow::Result;

#[derive(Default)]
pub struct NoopPrompt;

impl PromptPort for NoopPrompt {
    fn ask_type(&self) -> Result<CommitType> {
        Ok(CommitType::Feat)
    }
    fn ask_scope(&self) -> Result<Option<String>> {
        Ok(Some("core".into()))
    }
    fn ask_summary(&self) -> Result<String> {
        Ok("initial wiring".into())
    }
    fn ask_body(&self) -> Result<Option<String>> {
        Ok(None)
    }
    fn confirm_breaking(&self) -> Result<bool> {
        Ok(false)
    }
}