nu-cli: Remove crates not needed. (#3716)

This commit is contained in:
Andrés N. Robalino
2021-06-30 17:47:56 -05:00
committed by GitHub
parent e8c06b7152
commit c36d356f4e
7 changed files with 28 additions and 214 deletions

View File

@ -1,5 +1,18 @@
extern crate nu_command;
extern crate nu_test_support;
use quickcheck_macros::quickcheck;
mod commands;
mod format_conversions;
use nu_engine::EvaluationContext;
#[quickcheck]
fn quickcheck_parse(data: String) -> bool {
let (tokens, err) = nu_parser::lex(&data, 0, nu_parser::NewlineMode::Normal);
let (lite_block, err2) = nu_parser::parse_block(tokens);
if err.is_none() && err2.is_none() {
let context = EvaluationContext::basic();
let _ = nu_parser::classify_block(&lite_block, &context.scope);
}
true
}