tried to move source command into parser (still doesn't compile)

This commit is contained in:
Tanishq Kancharla
2021-09-27 08:10:18 -04:00
parent 1d945d8ce3
commit 719920fa37
7 changed files with 126 additions and 3 deletions

View File

@ -179,6 +179,7 @@ impl Value {
}
}
/// Follow a given column path into the value: for example accessing nth elements in a stream or list
pub fn follow_cell_path(self, column_path: &[PathMember]) -> Result<Value, ShellError> {
let mut current = self;
for member in column_path {

View File

@ -1,5 +1,6 @@
use crate::{ast::RangeInclusion, *};
/// A Range is an iterator over integers.
#[derive(Debug, Clone, PartialEq)]
pub struct Range {
pub from: Value,