diff --git a/completions/_nvme b/completions/_nvme index 6e80dd31b8..954b5c23b6 100644 --- a/completions/_nvme +++ b/completions/_nvme @@ -359,6 +359,24 @@ _nvme () { _arguments '*:: :->subcmds' _describe -t commands "nvme ocp set-error-injection options" _set_error_injection ;; + (hardware-component-log) + local _hardware_component_log + _hardware_component_log=( + /dev/nvme':supply a device to use (required)' + --comp-id=':component identifier' + -i':alias for --comp-id' + --list':list component descriptions' + -v':alias for --list' + --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 ocp hardware-component-log options" _hardware_component_log + ;; (*) _files ;; @@ -2583,6 +2601,7 @@ _nvme () { tcg-configuration-log':tcg configuration log' get-error-injection':get error injection' set-error-injection':set error injection' + hardware-component-log':retrieve hardware component log' ) _arguments '*:: :->subcmds' _describe -t commands "nvme ocp options" _ocp diff --git a/completions/bash-nvme-completion.sh b/completions/bash-nvme-completion.sh index 10f3ccde93..b7035093ff 100644 --- a/completions/bash-nvme-completion.sh +++ b/completions/bash-nvme-completion.sh @@ -1523,6 +1523,10 @@ plugin_ocp_opts () { opts+=" --data= -d --number= -n --no-uuid -N --type= -t \ --nrtdp= -r --verbose -v --output-format -o --timeout=" ;; + "hardware-component-log") + opts+=" --comp-id= -i --list -l --verbose -v \ + --output-format -o --timeout= -t" + ;; "help") opts+=$NO_OPTS ;; @@ -1602,7 +1606,8 @@ _nvme_subcmds () { set-dssd-power-state-feature get-dssd-power-state-feature \ telemetry-string-log set-telemetry-profile \ set-dssd-async-event-config get-dssd-async-event-config \ - get-error-injection set-error-injection" + get-error-injection set-error-injection \ + hardware-component-log" ) # Associative array mapping plugins to corresponding option completions