Add a load-conf command

This commit is contained in:
Daniel Berteaud 2024-01-31 22:31:35 +01:00
parent e4f7733c88
commit b1cdfdb85e
2 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,7 @@ _ctctl(){
_init_completion || return
case $prev in
auth|disconnect|render|fetch|prepare|current|tokens|list|build|build-no-cache|exec|sh|logs|loki|conf)
auth|disconnect|render|fetch|prepare|load-conf|current|tokens|list|build|build-no-cache|exec|sh|logs|loki|conf)
return
;;
switch)
@ -12,7 +12,7 @@ _ctctl(){
;;
esac
COMPREPLY=($(compgen -W 'auth switch current disconnect render fetch prepare tokens list build build-no-cache exec sh logs loki conf' -- "$cur"))
COMPREPLY=($(compgen -W 'auth switch current disconnect render fetch prepare load-conf tokens list build build-no-cache exec sh logs loki conf' -- "$cur"))
} &&
complete -F _ctctl ctctl

5
ctctl
View File

@ -948,6 +948,11 @@ case $1 in
ctctl_build_required_images
ctctl_renew_leases
;;
load-conf)
ctctl_load_policies
ctctl_load_consul_conf
ctctl_renew_leases
;;
build)
ctctl_build_selected_images
ctctl_renew_leases