Skip to content

Commit 890a7bd

Browse files
committed
completions: add reachability-groups-log command
Both bash and zsh completions updated for the command. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent ea0fa74 commit 890a7bd

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

completions/_nvme

+19
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ _nvme () {
113113
'mgmt-addr-list-log:retrieve management address list log'
114114
'changed-ns-list-log:retrieve changed allocated namespaces log'
115115
'dispersed-ns-participating-nss-log:retrieve dispersed namespace participating NVM subsystems log'
116+
'reachability-groups-log:retrieve reachability groups log'
116117
'version:show the program version'
117118
'ocp:OCP cloud SSD extensions'
118119
'solidigm:Solidigm plug-in extensions'
@@ -2674,6 +2675,24 @@ _nvme () {
26742675
_arguments '*:: :->subcmds'
26752676
_describe -t commands "nvme dispersed-ns-participating-nss-log" _dns_psub_log
26762677
;;
2678+
(reachability-groups-log)
2679+
local _rg_log
2680+
_caplog=(
2681+
/dev/nvme':supply a device to use (required)'
2682+
--groups-only':Return Groups Only'
2683+
-g':alias for --groups-only'
2684+
--rae':Retain an Asynchronous Event'
2685+
-r':alias for --rae'
2686+
--verbose':Increase the information detail in the output.'
2687+
-v':alias for --verbose'
2688+
--output-format=':Output format: normal|json|binary'
2689+
-o ':alias for --output-format'
2690+
--timeout=':value for timeout'
2691+
-t ':alias for --timeout'
2692+
)
2693+
_arguments '*:: :->subcmds'
2694+
_describe -t commands "nvme reachability-groups-log" _rg_log
2695+
;;
26772696
(version)
26782697
local _version
26792698
_version=(

completions/bash-nvme-completion.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,10 @@ nvme_list_opts () {
504504
opts+=" --namespace-id= -n --verbose -v --output-format= -o \
505505
--timeout= -t"
506506
;;
507+
"reachability-groups-log")
508+
opts+=" --groups-only -g --rae -r --verbose -v \
509+
--output-format= -o --timeout= -t"
510+
;;
507511
"version")
508512
opts+=$NO_OPTS
509513
;;
@@ -1696,7 +1700,8 @@ _nvme_subcmds () {
16961700
supported-cap-config-log dim show-topology list-endgrp \
16971701
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log \
16981702
rotational-media-info-log changed-alloc-ns-list-log \
1699-
io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log"
1703+
io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log \
1704+
reachability-groups-log"
17001705

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

0 commit comments

Comments
 (0)