Implement from_csv

This commit is contained in:
Jeff 2023-08-23 00:39:28 -04:00
parent 32955da03f
commit 90ebe3b8f5

View File

@ -1,6 +1,6 @@
//! Convert values to and from data formats like JSON and TOML. //! Convert values to and from data formats like JSON and TOML.
use crate::{Macro, MacroInfo, Result, Table, Value}; use crate::{Macro, MacroInfo, Result, Table, Value, ValueType};
pub struct FromJson; pub struct FromJson;
@ -49,7 +49,7 @@ impl Macro for FromCsv {
identifier: "from_csv", identifier: "from_csv",
description: "Create a whale value from a CSV string.", description: "Create a whale value from a CSV string.",
group: "data", group: "data",
inputs: vec![], inputs: vec![ValueType::String],
} }
} }