]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
completions: add mgmt-addr-list-log command
authorTokunori Ikegami <ikegami.t@gmail.com>
Mon, 13 Jan 2025 16:57:24 +0000 (01:57 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 13 Jan 2025 17:28:55 +0000 (18:28 +0100)
Both bash and zsh completions updated for the command.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
completions/_nvme
completions/bash-nvme-completion.sh

index 79e54959328bf73c2d50f559ca1901ac2cc7f4be..407019dee50e9a022008024d2b42b35135904e62 100644 (file)
@@ -2613,6 +2613,20 @@ _nvme () {
                        _arguments '*:: :->subcmds'
                        _describe -t commands "nvme set-reg options" _io_mgmt_send
                        ;;
+               (mgmt-addr-list-log)
+                       local _mal_log
+                       _caplog=(
+                       /dev/nvme':supply a device to use (required)'
+                       --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 mgmt-addr-list-log" _mal_log
+                       ;;
                (version)
                        local _version
                        _version=(
@@ -2724,7 +2738,7 @@ _nvme () {
                        get-property write-zeroes write-uncor verify sanitize sanitize-log reset
                        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
+                       dir-send virt-mgmt rpmb version ocp solidigm dapustor mgmt-addr-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
index cc497d9283606e8b157ee9758cffc314b343a646..d5ce95622f21c4ac1f9d55819a3f60c4122c05bc 100644 (file)
@@ -479,6 +479,9 @@ nvme_list_opts () {
                        --pmrmscu= --output-format= -o --verbose= -v \
                        --timeout= -t"
                        ;;
+               "mgmt-addr-list-log")
+               opts+=" --verbose -v --output-format= -o --timeout= -t"
+                       ;;
                "version")
                opts+=$NO_OPTS
                        ;;
@@ -1669,7 +1672,7 @@ _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"
+               nvme-mi-recv nvme-mi-send get-reg set-reg mgmt-addr-list-log"
 
        # Add plugins:
        for plugin in "${!_plugin_subcmds[@]}"; do