summaryrefslogtreecommitdiff
path: root/templates/_comps.rs.template
blob: b7f10dbe8d563a646988185f70f5e83366647c69 (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
26
// Auto generated by build.rs
use crate::systems::comp::context::CompletionContext;

pub fn match_comp(node: String, ctx: CompletionContext) -> Option<Vec<String>> {
    let node_str = node.as_str();
    match node_str {
>>>>>>>>>> comp_match_arms
        _ => None,
    }
}

pub fn jv_cmd_comp_nodes() -> Vec<String> {
    vec![
>>>>>>>>>> comp_node_name
    ]
}

@@@ >>> comp_match_arms
        // <<<comp_name>>>.rs
        "<<<comp_node_name>>>" => crate::cmds::comp::<<<comp_name>>>::comp(ctx),
@@@ <<<

@@@ >>> comp_node_name
        // <<<comp_node_name>>>
        "<<<comp_node_name>>>".to_string(),
@@@ <<<