Skip to content

Commit fbcbf25

Browse files
committed
completions: add host-discovery-log command
Both bash and zsh completions updated for the command. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 7304c18 commit fbcbf25

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

completions/_nvme

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ _nvme () {
115115
'dispersed-ns-participating-nss-log:retrieve dispersed namespace participating NVM subsystems log'
116116
'reachability-groups-log:retrieve reachability groups log'
117117
'reachability-associations-log:retrieve reachability associations log'
118+
'host-discovery-log:retrieve host discovery log'
118119
'version:show the program version'
119120
'ocp:OCP cloud SSD extensions'
120121
'solidigm:Solidigm plug-in extensions'
@@ -2738,6 +2739,24 @@ _nvme () {
27382739
_arguments '*:: :->subcmds'
27392740
_describe -t commands "nvme reachability-associationsroups-log" _ra_log
27402741
;;
2742+
(host-discovery-log)
2743+
local _hd_log
2744+
_hd_log=(
2745+
/dev/nvme':supply a device to use (required)'
2746+
--all-host-entries':All Host Entries'
2747+
-a':alias for --all-host-entries'
2748+
--rae':Retain an Asynchronous Event'
2749+
-r':alias for --rae'
2750+
--verbose':Increase the information detail in the output.'
2751+
-v':alias for --verbose'
2752+
--output-format=':Output format: normal|json|binary'
2753+
-o ':alias for --output-format'
2754+
--timeout=':value for timeout'
2755+
-t ':alias for --timeout'
2756+
)
2757+
_arguments '*:: :->subcmds'
2758+
_describe -t commands "nvme host-discovery-log" _hd_log
2759+
;;
27412760
(version)
27422761
local _version
27432762
_version=(

completions/bash-nvme-completion.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ nvme_list_opts () {
512512
opts+=" --associations-only -a --rae -r --verbose -v \
513513
--output-format= -o --timeout= -t"
514514
;;
515+
"host-discovery-log")
516+
opts+=" --all-host-entries -a --rae -r --verbose -v \
517+
--output-format= -o --timeout= -t"
518+
;;
515519
"version")
516520
opts+=$NO_OPTS
517521
;;
@@ -1742,7 +1746,8 @@ _nvme_subcmds () {
17421746
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log \
17431747
rotational-media-info-log changed-alloc-ns-list-log \
17441748
io-mgmt-recv io-mgmt-send dispersed-ns-participating-nss-log \
1745-
reachability-groups-log reachability-associations-log"
1749+
reachability-groups-log reachability-associations-log \
1750+
host-discovery-log"
17461751

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

0 commit comments

Comments
 (0)