summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2026-02-24 15:54:17 -0600
committerJohn Estabrook <jestabro@vyos.io>2026-02-24 21:59:06 -0600
commitafe5cc298aefdc6b0cab40eb24763cec8f008e51 (patch)
treea57531ac973923bc7ee689503824585088441162
parent4e211a29e41bd8f60b23881c1f38ba0f10e45862 (diff)
downloadvyos1x-config-afe5cc298aefdc6b0cab40eb24763cec8f008e51.tar.gz
vyos1x-config-afe5cc298aefdc6b0cab40eb24763cec8f008e51.zip
T8313: add copy and rename to completion op variant
-rw-r--r--src/completion.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/completion.ml b/src/completion.ml
index 5ac92c6..b121410 100644
--- a/src/completion.ml
+++ b/src/completion.ml
@@ -1,4 +1,4 @@
-type op_type = Set | Edit | Delete | Show | Comment | Unknown
+type op_type = Set | Edit | Delete | Show | Comment | Copy | Rename | Unknown
let op_of_string op_str =
match op_str with
@@ -7,6 +7,8 @@ let op_of_string op_str =
| "delete" -> Delete
| "show" -> Show
| "comment" -> Comment
+ | "copy" -> Copy
+ | "rename" -> Rename
| _ -> Unknown
type completion_env = {
@@ -67,7 +69,7 @@ let get_completion_env rtree ctree op cpath =
| _ ->
let restricted =
match op with
- | Delete | Show | Comment -> true
+ | Delete | Show | Comment | Copy | Rename -> true
| _ -> false
in
let last = Util.get_last cpath in