Trait workflow_terminal::cli::Cli
source · pub trait Cli: Sync + Send {
fn digest<'life0, 'async_trait>(
&'life0 self,
term: Arc<Terminal>,
cmd: String
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn complete<'life0, 'async_trait>(
&'life0 self,
term: Arc<Terminal>,
cmd: String
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn init(&self, _term: &Arc<Terminal>) -> Result<()> { ... }
}