diff options
Diffstat (limited to 'templates/_commands.rs.template')
| -rw-r--r-- | templates/_commands.rs.template | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/templates/_commands.rs.template b/templates/_commands.rs.template index 84d2db4..c11e312 100644 --- a/templates/_commands.rs.template +++ b/templates/_commands.rs.template @@ -1,7 +1,7 @@ // 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, @@ -10,17 +10,27 @@ pub async fn jv_cmd_process_node( renderer_override: String ) -> Result<crate::systems::render::renderer::JVRenderResult, crate::systems::cmd::errors::CmdProcessError> { match node { -// PROCESS -// -- TEMPLATE START -- - // Command `<<KEY>>` - "<<NODE_NAME>>" => { +>>>>>>>>>> command_match_arms + _ => {} + } + return Err(CmdProcessError::NoNodeFound(node.to_string())); +} + +/// Get all command nodes +pub fn jv_cmd_nodes() -> Vec<String> { + vec!<<<nodes>>> +} + +@@@ >>> command_match_arms + // Command `<<<key>>>` + "<<<node_name>>>" => { if renderer_override == "default" { - return crate::<<COMMAND_TYPE>>::process_to_render_system( + return crate::<<<cmd_type>>>::process_to_render_system( args, ctx, ) .await; } else { - return crate::<<COMMAND_TYPE>>::process_to_renderer_override( + return crate::<<<cmd_type>>>::process_to_renderer_override( args, ctx, renderer_override, @@ -28,13 +38,4 @@ pub async fn jv_cmd_process_node( .await; } } -// -- TEMPLATE END -- - _ => {} - } - return Err(CmdProcessError::NoNodeFound(node.to_string())); -} -<<LINE>> -/// Get all command nodes -pub fn jv_cmd_nodes() -> Vec<String> { - vec!<<NODES>> -} +@@@ <<< |
