summaryrefslogtreecommitdiff
path: root/templates/_comps.rs.template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_comps.rs.template')
-rw-r--r--templates/_comps.rs.template26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/_comps.rs.template b/templates/_comps.rs.template
new file mode 100644
index 0000000..b7f10db
--- /dev/null
+++ b/templates/_comps.rs.template
@@ -0,0 +1,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(),
+@@@ <<<