commit_wizard/adapters/prompt/
noop.rs

1use crate::{domain::commit::CommitType, ports::prompt::PromptPort};
2use anyhow::Result;
3
4#[derive(Default)]
5pub struct NoopPrompt;
6
7impl PromptPort for NoopPrompt {
8    fn ask_type(&self) -> Result<CommitType> {
9        Ok(CommitType::Feat)
10    }
11    fn ask_scope(&self) -> Result<Option<String>> {
12        Ok(Some("core".into()))
13    }
14    fn ask_summary(&self) -> Result<String> {
15        Ok("initial wiring".into())
16    }
17    fn ask_body(&self) -> Result<Option<String>> {
18        Ok(None)
19    }
20    fn confirm_breaking(&self) -> Result<bool> {
21        Ok(false)
22    }
23}