From 20cb75f0cee990f752d10f70fae48215d2e780a4 Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Thu, 13 Feb 2025 23:55:49 +0900 Subject: [PATCH] completions: add reachability-associations-log command Both bash and zsh completions updated for the command. Also fix the reachability-groups-log bash completion to use a single space. Signed-off-by: Tokunori Ikegami --- completions/_nvme | 19 +++++++++++++++++++ completions/bash-nvme-completion.sh | 8 ++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/completions/_nvme b/completions/_nvme index 68e97a88e3..324b070e07 100644 --- a/completions/_nvme +++ b/completions/_nvme @@ -114,6 +114,7 @@ _nvme () { 'changed-ns-list-log:retrieve changed allocated namespaces log' 'dispersed-ns-participating-nss-log:retrieve dispersed namespace participating NVM subsystems log' 'reachability-groups-log:retrieve reachability groups log' + 'reachability-associations-log:retrieve reachability associations log' 'version:show the program version' 'ocp:OCP cloud SSD extensions' 'solidigm:Solidigm plug-in extensions' @@ -2693,6 +2694,24 @@ _nvme () { _arguments '*:: :->subcmds' _describe -t commands "nvme reachability-groups-log" _rg_log ;; + (reachability-associations-log) + local _ra_log + _caplog=( + /dev/nvme':supply a device to use (required)' + --associations-only':Return Associations Only' + -a':alias for --associations-only' + --rae':Retain an Asynchronous Event' + -r':alias for --rae' + --verbose':Increase the information detail in the output.' + -v':alias for --verbose' + --output-format=':Output format: normal|json|binary' + -o ':alias for --output-format' + --timeout=':value for timeout' + -t ':alias for --timeout' + ) + _arguments '*:: :->subcmds' + _describe -t commands "nvme reachability-associationsroups-log" _ra_log + ;; (version) local _version _version=( diff --git a/completions/bash-nvme-completion.sh b/completions/bash-nvme-completion.sh index 9903603fa2..949f4da506 100644 --- a/completions/bash-nvme-completion.sh +++ b/completions/bash-nvme-completion.sh @@ -505,7 +505,11 @@ nvme_list_opts () { --timeout= -t" ;; "reachability-groups-log") - opts+=" --groups-only -g --rae -r --verbose -v \ + opts+=" --groups-only -g --rae -r --verbose -v \ + --output-format= -o --timeout= -t" + ;; + "reachability-associations-log") + opts+=" --associations-only -a --rae -r --verbose -v \ --output-format= -o --timeout= -t" ;; "version") @@ -1701,7 +1705,7 @@ _nvme_subcmds () { nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log \ rotational-media-info-log changed-alloc-ns-list-log \ io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log \ - reachability-groups-log" + reachability-groups-log reachability-associations-log" # Add plugins: for plugin in "${!_plugin_subcmds[@]}"; do