blob: 0c6d0d53b14aa90dbe7c3b86d8067c0468657e95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Auto generated by build.rs
use crate::subcmd::cmd::{JVCommand, JVCommandContext};
use crate::subcmd::errors::CmdProcessError;
<<LINE>>
/// Input parameters, execute a command node
pub async fn jv_cmd_process_node(
node: &str,
args: Vec<String>,
ctx: JVCommandContext
) -> Result<crate::subcmd::renderer::JVRenderResult, crate::subcmd::errors::CmdProcessError> {
match node {
// PROCESS
// -- TEMPLATE START --
// Command `<<KEY>>`
"<<NODE_NAME>>" => return crate::<<COMMAND_TYPE>>::process(args, ctx).await,
// -- TEMPLATE END --
_ => {}
}
return Err(CmdProcessError::NoNodeFound(node.to_string()));
}
<<LINE>>
/// Get all command nodes
pub fn jv_cmd_nodes() -> Vec<String> {
vec!<<NODES>>
}
|