added interactive mode (#44)
Co-authored-by: kjuulh <contact@kjuulh.io> Reviewed-on: https://git.front.kjuulh.io/kjuulh/octopush/pulls/44
This commit is contained in:
12
crates/octopush_core/src/ui/mod.rs
Normal file
12
crates/octopush_core/src/ui/mod.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
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>;
|
Reference in New Issue
Block a user