Skip to content

Commit 1d65c63

Browse files
ikegami-tigaw
authored andcommitted
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 <[email protected]>
1 parent afa65ec commit 1d65c63

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

completions/_nvme

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ _nvme () {
114114
'changed-ns-list-log:retrieve changed allocated namespaces log'
115115
'dispersed-ns-participating-nss-log:retrieve dispersed namespace participating NVM subsystems log'
116116
'reachability-groups-log:retrieve reachability groups log'
117+
'reachability-associations-log:retrieve reachability associations log'
117118
'version:show the program version'
118119
'ocp:OCP cloud SSD extensions'
119120
'solidigm:Solidigm plug-in extensions'
@@ -2693,6 +2694,24 @@ _nvme () {
26932694
_arguments '*:: :->subcmds'
26942695
_describe -t commands "nvme reachability-groups-log" _rg_log
26952696
;;
2697+
(reachability-associations-log)
2698+
local _ra_log
2699+
_caplog=(
2700+
/dev/nvme':supply a device to use (required)'
2701+
--associations-only':Return Associations Only'
2702+
-a':alias for --associations-only'
2703+
--rae':Retain an Asynchronous Event'
2704+
-r':alias for --rae'
2705+
--verbose':Increase the information detail in the output.'
2706+
-v':alias for --verbose'
2707+
--output-format=':Output format: normal|json|binary'
2708+
-o ':alias for --output-format'
2709+
--timeout=':value for timeout'
2710+
-t ':alias for --timeout'
2711+
)
2712+
_arguments '*:: :->subcmds'
2713+
_describe -t commands "nvme reachability-associationsroups-log" _ra_log
2714+
;;
26962715
(version)
26972716
local _version
26982717
_version=(

completions/bash-nvme-completion.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,11 @@ nvme_list_opts () {
505505
--timeout= -t"
506506
;;
507507
"reachability-groups-log")
508-
opts+=" --groups-only -g --rae -r --verbose -v \
508+
opts+=" --groups-only -g --rae -r --verbose -v \
509+
--output-format= -o --timeout= -t"
510+
;;
511+
"reachability-associations-log")
512+
opts+=" --associations-only -a --rae -r --verbose -v \
509513
--output-format= -o --timeout= -t"
510514
;;
511515
"version")
@@ -1701,7 +1705,7 @@ _nvme_subcmds () {
17011705
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log \
17021706
rotational-media-info-log changed-alloc-ns-list-log \
17031707
io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log \
1704-
reachability-groups-log"
1708+
reachability-groups-log reachability-associations-log"
17051709

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

0 commit comments

Comments
 (0)