]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: add bash/zsh completions for machinectl pause/resume
authorChristian Brauner <brauner@kernel.org>
Thu, 2 Apr 2026 14:21:14 +0000 (16:21 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 15 Apr 2026 08:14:48 +0000 (10:14 +0200)
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
shell-completion/bash/machinectl
shell-completion/zsh/_machinectl

index 78319d91a419cae9106a7b73ef2e713ed13c464e..50b46fb27925b6b7283e3f553f7aadf3af04bd45 100644 (file)
@@ -45,7 +45,7 @@ _machinectl() {
 
     local -A VERBS=(
         [STANDALONE]='list list-images clean pull-tar pull-raw list-transfers cancel-transfer import-fs'
-        [MACHINES]='status show start stop login shell enable disable poweroff reboot terminate kill
+        [MACHINES]='status show start stop login shell enable disable poweroff reboot pause resume terminate kill
                     image-status show-image remove export-tar export-raw'
         [MACHINES_OR_FILES]='edit cat'
         [MACHINE_ONLY]='clone rename set-limit'
index d5f7aa9680d6c4b7f011e1ceed316980e06a18ff..31ddf4fca571d171ac6b82283e2d3f4ca55e7ab9 100644 (file)
@@ -38,6 +38,8 @@
         "disable:Disable automatic container start at boot"
         "poweroff:Power off one or more VMs/containers"
         "reboot:Reboot one or more VMs/containers"
+        "pause:Pause one or more machines"
+        "resume:Resume one or more previously paused machines"
         "terminate:Terminate one or more VMs/containers"
         "kill:Send signal to process or a VM/container"
         "copy-to:Copy files from the host to a container"
@@ -77,7 +79,7 @@
         start|enable|disable)
             _machinectl_images ;;
 
-        status|show|poweroff|reboot|terminate|kill)
+        status|show|poweroff|reboot|pause|resume|terminate|kill)
             _sd_machines ;;
 
         login|shell)