diff options
author | Daniil Baturin <daniil@baturin.org> | 2025-01-20 19:15:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-20 19:15:10 +0000 |
commit | a375860a302a224722d254c31a1cb210cb12d972 (patch) | |
tree | 96217a1eaf38c910e183c30f2adab865b409e916 /src/vycli.ml | |
parent | 5ae7f4150091efb66c6f9946df81adde3ddc6ace (diff) | |
parent | 5cb1952f52a8a67905a9361364a0c0823d44ed03 (diff) | |
download | vyconf-a375860a302a224722d254c31a1cb210cb12d972.tar.gz vyconf-a375860a302a224722d254c31a1cb210cb12d972.zip |
Merge pull request #13 from jestabro/mutable-world
T7046: T6946: add ability to reload reference tree at runtime
Diffstat (limited to 'src/vycli.ml')
-rw-r--r-- | src/vycli.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vycli.ml b/src/vycli.ml index 1430a5a..f793ae0 100644 --- a/src/vycli.ml +++ b/src/vycli.ml @@ -11,6 +11,7 @@ type op_t = | OpGetValues | OpListChildren | OpValidate + | OpReloadReftree let token : string option ref = ref None let conf_format_opt = ref "curly" @@ -36,6 +37,7 @@ let args = [ ("--show-config", Arg.Unit (fun () -> op := Some OpShowConfig), "Show the configuration at the specified path"); ("--status", Arg.Unit (fun () -> op := Some OpStatus), "Send a status/keepalive message"); ("--validate", Arg.Unit (fun () -> op := Some OpValidate), "Validate path"); + ("--reload-reftree", Arg.Unit (fun () -> op := Some OpReloadReftree), "Reload reference tree"); ] let config_format_of_string s = @@ -77,6 +79,7 @@ let main socket op path out_format config_format = | OpListChildren -> list_children client path | OpShowConfig -> show_config client path | OpValidate -> validate client path + | OpReloadReftree -> reload_reftree client | _ -> Error "Unimplemented" |> Lwt.return end in match result with |