Extract completions into subcrate. (#3631)

This commit is contained in:
Andrés N. Robalino
2021-06-16 15:20:01 -05:00
committed by GitHub
parent 04c0e94349
commit 7c8fb060f1
19 changed files with 160 additions and 110 deletions

View File

@ -3,6 +3,8 @@ use nu_source::Spanned;
use std::{fmt::Debug, sync::Arc};
pub trait ParserScope: Debug {
fn get_names(&self) -> Vec<String>;
fn get_signature(&self, name: &str) -> Option<nu_protocol::Signature>;
fn has_signature(&self, name: &str) -> bool;