Skip to content

Commit 9d7904d

Browse files
ikegami-tigaw
authored andcommitted
completions: add dispersed-ns-participating-nss-log command
Both bash and zsh completions updated for the command. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent bd5adaf commit 9d7904d

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

completions/_nvme

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ _nvme () {
112112
'io-mgmt-send:send an I/O management send command'
113113
'mgmt-addr-list-log:retrieve management address list log'
114114
'changed-ns-list-log:retrieve changed allocated namespaces log'
115+
'dispersed-ns-participating-nss-log:retrieve dispersed namespace participating NVM subsystems log'
115116
'version:show the program version'
116117
'ocp:OCP cloud SSD extensions'
117118
'solidigm:Solidigm plug-in extensions'
@@ -2657,6 +2658,22 @@ _nvme () {
26572658
_arguments '*:: :->subcmds'
26582659
_describe -t commands "nvme changed-alloc-ns-list-log options" _changed_alloc_ns_list_log
26592660
;;
2661+
(dispersed-ns-participating-nss-log)
2662+
local _dns_psub_log
2663+
_caplog=(
2664+
/dev/nvme':supply a device to use (required)'
2665+
--namespace-id=':show infos for namespace <nsid>'
2666+
-n':alias of --namespace-id'
2667+
--verbose':Increase the information detail in the output.'
2668+
-v':alias for --verbose'
2669+
--output-format=':Output format: normal|json|binary'
2670+
-o ':alias for --output-format'
2671+
--timeout=':value for timeout'
2672+
-t ':alias for --timeout'
2673+
)
2674+
_arguments '*:: :->subcmds'
2675+
_describe -t commands "nvme dispersed-ns-participating-nss-log" _dns_psub_log
2676+
;;
26602677
(version)
26612678
local _version
26622679
_version=(

completions/bash-nvme-completion.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,10 @@ nvme_list_opts () {
490490
opts+=" --output-format= -o --raw-binary -b --verbose -v \
491491
--timeout= -t"
492492
;;
493+
"dispersed-ns-participating-nss-log")
494+
opts+=" --namespace-id= -n --verbose -v --output-format= -o \
495+
--timeout= -t"
496+
;;
493497
"version")
494498
opts+=$NO_OPTS
495499
;;
@@ -1681,7 +1685,8 @@ _nvme_subcmds () {
16811685
supported-log-pages lockdown media-unit-stat-log \
16821686
supported-cap-config-log dim show-topology list-endgrp \
16831687
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log \
1684-
rotational-media-info-log changed-alloc-ns-list-log"
1688+
rotational-media-info-log changed-alloc-ns-list-log \
1689+
dispersed-ns-participating-nss-log"
16851690

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

0 commit comments

Comments
 (0)