Add commands

This commit is contained in:
JT
2021-09-03 10:58:15 +12:00
parent 94687a7603
commit 7c8504ea24
23 changed files with 536 additions and 324 deletions

View File

@ -1,5 +1,4 @@
use nu_protocol::{engine::StateWorkingSet, Span, Type};
use std::ops::Range;
use nu_protocol::{Span, Type};
#[derive(Debug)]
pub enum ParseError {

View File

@ -7,7 +7,7 @@ use crate::{
use nu_protocol::{
ast::{Block, Call, Expr, Expression, Operator, Pipeline, Statement},
engine::StateWorkingSet,
span, BlockId, DeclId, Flag, PositionalArg, Signature, Span, SyntaxShape, Type, VarId,
span, Flag, PositionalArg, Signature, Span, SyntaxShape, Type, VarId,
};
#[derive(Debug, Clone)]
@ -416,9 +416,6 @@ pub fn parse_internal_call(
// Parse a positional arg if there is one
if let Some(positional) = signature.get_positional(positional_idx) {
//Make sure we leave enough spans for the remaining positionals
let decl = working_set.get_decl(decl_id);
let end = calculate_end_span(working_set, &signature, spans, spans_idx, positional_idx);
// println!(