Kasper Juul Hermansen 0dedf9268d added interactive mode (#44)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: #44
2022-12-01 08:51:52 +00:00

13 lines
200 B
Rust

pub mod terminal_ui;
use std::sync::Arc;
use async_trait::async_trait;
#[async_trait]
pub trait UI {
async fn confirm(&self) -> eyre::Result<()>;
}
pub type DynUI = Arc<dyn UI + Send + Sync>;