Add type checks
This commit is contained in:
parent
39d3ca85ea
commit
fde899bf3e
@ -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.
|
||||||
|
@ -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],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user