Skip to content

Commit

Permalink
completions: add ave-discovery-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 28, 2025
1 parent c2ddcbf commit 21516ec
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
17 changes: 17 additions & 0 deletions completions/_nvme
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ _nvme () {
'reachability-groups-log:retrieve reachability groups log'
'reachability-associations-log:retrieve reachability associations log'
'host-discovery-log:retrieve host discovery log'
'ave-discovery-log:retrieve ave discovery log'
'version:show the program version'
'ocp:OCP cloud SSD extensions'
'solidigm:Solidigm plug-in extensions'
Expand Down Expand Up @@ -2757,6 +2758,22 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme host-discovery-log" _hd_log
;;
(ave-discovery-log)
local _ad_log
_ad_log=(
/dev/nvme':supply a device to use (required)'
--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 ave-discovery-log" _ad_log
;;
(version)
local _version
_version=(
Expand Down
6 changes: 5 additions & 1 deletion completions/bash-nvme-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,10 @@ nvme_list_opts () {
opts+=" --all-host-entries -a --rae -r --verbose -v \
--output-format= -o --timeout= -t"
;;
"ave-discovery-log")
opts+=" --rae -r --verbose -v --output-format= -o \
--timeout= -t"
;;
"version")
opts+=$NO_OPTS
;;
Expand Down Expand Up @@ -1747,7 +1751,7 @@ _nvme_subcmds () {
rotational-media-info-log changed-alloc-ns-list-log \
io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log \
reachability-groups-log reachability-associations-log \
host-discovery-log"
host-discovery-log ave-discovery-log"

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

0 comments on commit 21516ec

Please sign in to comment.