summaryrefslogtreecommitdiff
path: root/templates/_registry.rs.template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_registry.rs.template')
-rw-r--r--templates/_registry.rs.template33
1 files changed, 0 insertions, 33 deletions
diff --git a/templates/_registry.rs.template b/templates/_registry.rs.template
deleted file mode 100644
index 957484c..0000000
--- a/templates/_registry.rs.template
+++ /dev/null
@@ -1,33 +0,0 @@
-// Auto generated by build.rs
-use crate::systems::cmd::cmd_system::{JVCommand, JVCommandContext};
-use crate::systems::cmd::errors::CmdProcessError;
-<<LINE>>
-/// Input parameters, execute a command node
-pub async fn jv_cmd_process_node(
- node: &str,
- args: Vec<String>,
- ctx: JVCommandContext,
- renderer_override: String
-) -> Result<crate::systems::cmd::renderer::JVRenderResult, crate::systems::cmd::errors::CmdProcessError> {
- match node {
-// PROCESS
-// -- TEMPLATE START --
- // Command `<<KEY>>`
- "<<NODE_NAME>>" => {
- return crate::<<COMMAND_TYPE>>::process_with_renderer_flag(
- args,
- ctx,
- renderer_override
- )
- .await;
- }
-// -- TEMPLATE END --
- _ => {}
- }
- return Err(CmdProcessError::NoNodeFound(node.to_string()));
-}
-<<LINE>>
-/// Get all command nodes
-pub fn jv_cmd_nodes() -> Vec<String> {
- vec!<<NODES>>
-}