espforge_lib/cli/interactive/mod.rs
1pub mod catalog;
2pub mod dialoguer;
3
4pub use catalog::{ChipCatalog, ExampleCatalog};
5pub use dialoguer::DialoguerPrompter;
6
7use anyhow::Result;
8
9pub trait Prompter {
10 fn select_example(&self) -> Result<String>;
11 fn prompt_project_name(&self, default: &str) -> Result<String>;
12 fn select_chip(&self) -> Result<String>;
13 fn confirm_overwrite(&self, dir_name: &str) -> Result<bool>;
14}