Migration of series commands (#515)

* corrected missing shellerror type

* batch dataframe commands

* removed option to find declaration with input

* ordered dataframe folders

* dataframe command name
* series commands

* date commands

* series commands

* series commands

* clippy correction

* rename commands
This commit is contained in:
Fernando Herrera
2021-12-18 17:45:09 +00:00
committed by GitHub
parent d8847f1082
commit 46b86f3541
63 changed files with 4491 additions and 35 deletions

View File

@ -337,3 +337,17 @@ impl FromValue for Spanned<PathBuf> {
}
}
}
impl FromValue for Vec<Value> {
fn from_value(v: &Value) -> Result<Self, ShellError> {
// FIXME: we may want to fail a little nicer here
match v {
Value::List { vals, .. } => Ok(vals.clone()),
v => Err(ShellError::CantConvert(
"Vector of values".into(),
v.get_type().to_string(),
v.span()?,
)),
}
}
}