Skip to content

Commit 21516ec

Browse files
ikegami-tigaw
authored andcommitted
completions: add ave-discovery-log command
Both bash and zsh completions updated for the command. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent c2ddcbf commit 21516ec

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

completions/_nvme

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ _nvme () {
116116
'reachability-groups-log:retrieve reachability groups log'
117117
'reachability-associations-log:retrieve reachability associations log'
118118
'host-discovery-log:retrieve host discovery log'
119+
'ave-discovery-log:retrieve ave discovery log'
119120
'version:show the program version'
120121
'ocp:OCP cloud SSD extensions'
121122
'solidigm:Solidigm plug-in extensions'
@@ -2757,6 +2758,22 @@ _nvme () {
27572758
_arguments '*:: :->subcmds'
27582759
_describe -t commands "nvme host-discovery-log" _hd_log
27592760
;;
2761+
(ave-discovery-log)
2762+
local _ad_log
2763+
_ad_log=(
2764+
/dev/nvme':supply a device to use (required)'
2765+
--rae':Retain an Asynchronous Event'
2766+
-r':alias for --rae'
2767+
--verbose':Increase the information detail in the output.'
2768+
-v':alias for --verbose'
2769+
--output-format=':Output format: normal|json|binary'
2770+
-o ':alias for --output-format'
2771+
--timeout=':value for timeout'
2772+
-t ':alias for --timeout'
2773+
)
2774+
_arguments '*:: :->subcmds'
2775+
_describe -t commands "nvme ave-discovery-log" _ad_log
2776+
;;
27602777
(version)
27612778
local _version
27622779
_version=(

completions/bash-nvme-completion.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,10 @@ nvme_list_opts () {
516516
opts+=" --all-host-entries -a --rae -r --verbose -v \
517517
--output-format= -o --timeout= -t"
518518
;;
519+
"ave-discovery-log")
520+
opts+=" --rae -r --verbose -v --output-format= -o \
521+
--timeout= -t"
522+
;;
519523
"version")
520524
opts+=$NO_OPTS
521525
;;
@@ -1747,7 +1751,7 @@ _nvme_subcmds () {
17471751
rotational-media-info-log changed-alloc-ns-list-log \
17481752
io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log \
17491753
reachability-groups-log reachability-associations-log \
1750-
host-discovery-log"
1754+
host-discovery-log ave-discovery-log"
17511755

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

0 commit comments

Comments
 (0)