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<()> { ... } }

Required Methods§

source

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,

source

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,

Provided Methods§

source

fn init(&self, _term: &Arc<Terminal>) -> Result<()>

Implementors§