Skip to content

Commit

Permalink
completions: add changed-alloc-ns-list-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 committed Jan 27, 2025
1 parent 02b8e17 commit 3ed2208
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
18 changes: 18 additions & 0 deletions completions/_nvme
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ _nvme () {
'io-mgmt-recv:send an I/O management receive command'
'io-mgmt-send:send an I/O management send command'
'mgmt-addr-list-log:retrieve management address list log'
'changed-ns-list-log:retrieve changed allocated namespaces log'
'version:show the program version'
'ocp:OCP cloud SSD extensions'
'solidigm:Solidigm plug-in extensions'
Expand Down Expand Up @@ -2628,6 +2629,22 @@ _nvme () {
_arguments '*:: :->subcmds'
_describe -t commands "nvme mgmt-addr-list-log" _mal_log
;;
(changed-alloc-ns-list-log)
local _changed_alloc_ns_list_log
_changed_alloc_ns_list_log=(
/dev/nvme':supply a device to use (required)'
--output-format=':Output format: normal|json|binary'
-o':alias for --output-format'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--verbose':Increase the information detail in the output.'
-v':alias for --verbose'
--timeout=':value for timeout'
-t ':alias for --timeout'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme changed-alloc-ns-list-log options" _changed_alloc_ns_list_log
;;
(version)
local _version
_version=(
Expand Down Expand Up @@ -2740,6 +2757,7 @@ _nvme () {
subsystem-reset ns-rescan get-lba-status dsm discover connect-all connect
dim disconnect disconnect-all gen-hostnqn show-hostnqn tls-key dir-receive
dir-send virt-mgmt rpmb version ocp solidigm dapustor mgmt-addr-list-log
changed-alloc-ns-list-log
)
_arguments '*:: :->subcmds'
_describe -t commands "help: infos on a specific nvme command, or provide no option to see a synopsis of all nvme commands" _h
Expand Down
7 changes: 6 additions & 1 deletion completions/bash-nvme-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ nvme_list_opts () {
"mgmt-addr-list-log")
opts+=" --verbose -v --output-format= -o --timeout= -t"
;;
"changed-alloc-cns-list-log")
opts+=" --output-format= -o --raw-binary -b --verbose -v \
--timeout= -t"
;;
"version")
opts+=$NO_OPTS
;;
Expand Down Expand Up @@ -1672,7 +1676,8 @@ _nvme_subcmds () {
rpmb boot-part-log fid-support-effects-log \
supported-log-pages lockdown media-unit-stat-log \
supported-cap-config-log dim show-topology list-endgrp \
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log"
nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log \
changed-alloc-ns-list-log"

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

0 comments on commit 3ed2208

Please sign in to comment.