Add type checks

This commit is contained in:
Jeff 2023-08-23 20:27:08 -04:00
parent 39d3ca85ea
commit fde899bf3e
3 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,8 @@ use std::{
}; };
use dust_lib::{ use dust_lib::{
eval, eval_with_context, gui::GuiApp, Result, Tool, ToolInfo, Value, VariableMap, TOOL_LIST, eval, eval_with_context, tools::gui::GuiApp, Result, Tool, ToolInfo, Value, VariableMap,
TOOL_LIST,
}; };
/// Command-line arguments to be parsed. /// Command-line arguments to be parsed.

View File

@ -10,7 +10,7 @@ impl Tool for FromJson {
identifier: "from_json", identifier: "from_json",
description: "Get a whale value from a JSON string.", description: "Get a whale value from a JSON string.",
group: "data", group: "data",
inputs: vec![], inputs: vec![ValueType::String],
} }
} }

View File

@ -1,6 +1,6 @@
//! Macros for network access. //! Macros for network access.
use crate::{Result, Tool, ToolInfo, Value}; use crate::{Result, Tool, ToolInfo, Value, ValueType};
pub struct Download; pub struct Download;
@ -10,7 +10,7 @@ impl Tool for Download {
identifier: "download", identifier: "download",
description: "Fetch a network resource.", description: "Fetch a network resource.",
group: "network", group: "network",
inputs: vec![], inputs: vec![ValueType::String],
} }
} }