Skip to content

Commit

Permalink
completions: add reachability-groups-log command
Browse files Browse the repository at this point in the history
Both bash and zsh completions updated for the command.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t authored and igaw committed Feb 11, 2025
1 parent 3df1e29 commit fe4e2b0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
19 changes: 19 additions & 0 deletions completions/_nvme
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ _nvme () {
'mgmt-addr-list-log:retrieve management address list log'
'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'
'version:show the program version'
'ocp:OCP cloud SSD extensions'
'solidigm:Solidigm plug-in extensions'
Expand Down Expand Up @@ -2674,6 +2675,24 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme dispersed-ns-participating-nss-log" _dns_psub_log
;;
(reachability-groups-log)
local _rg_log
_caplog=(
/dev/nvme':supply a device to use (required)'
--groups-only':Return Groups Only'
-g':alias for --groups-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-groups-log" _rg_log
;;
(version)
local _version
_version=(
Expand Down
7 changes: 6 additions & 1 deletion completions/bash-nvme-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ nvme_list_opts () {
opts+=" --namespace-id= -n --verbose -v --output-format= -o \
--timeout= -t"
;;
"reachability-groups-log")
opts+=" --groups-only -g --rae -r --verbose -v \
--output-format= -o --timeout= -t"
;;
"version")
opts+=$NO_OPTS
;;
Expand Down Expand Up @@ -1696,7 +1700,8 @@ _nvme_subcmds () {
supported-cap-config-log dim show-topology list-endgrp \
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"
io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log \
reachability-groups-log"

# Add plugins:
for plugin in "${!_plugin_subcmds[@]}"; do
Expand Down

0 comments on commit fe4e2b0

Please sign in to comment.