]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
completions: Add zsh option values handling for sanitize command action
authorTokunori Ikegami <ikegami.t@gmail.com>
Sun, 14 May 2023 03:14:36 +0000 (12:14 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 15 May 2023 15:07:58 +0000 (17:07 +0200)
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
completions/_nvme

index 720bb858d7b0690d615e7ba0a1a2a76e91558ab5..c820f5c7bd375c0077479397c9f763993a94656b 100644 (file)
@@ -227,7 +227,17 @@ _nvme () {
                                _arguments '*:: :->subcmds'
                                _describe -t commands "nvme ocp vs-fw-activate-history options" _vs_fw_activate_history
                                ;;
-               (*)
+                       (*)
+                               _files
+                               ;;
+                       esac
+                       ;;
+               (sanitize)
+                       case ${words[CURRENT-1]} in
+                       (--sanact=|-a)
+                               _values '' 'exit-failure' 'start-block-erase' 'start-overwrite' 'start-crypto-erase'
+                               ;;
+                       (*)
                                _files
                                ;;
                        esac