_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp device-capability-log options" _device_capability_log
;;
+ (set-dssd-power-state-feature)
+ local _set_dssd_power_state_feature
+ _set_dssd_power_state_feature=(
+ /dev/nvme':supply a device to use (required)'
+ --power-state=':DSSD Power State to set in watts'
+ -p':alias for --power-state'
+ --save':Specifies that the controller shall save the attribute'
+ -s':alias for --save'
+ --no-uuid':Skip UUID index search'
+ -n':alias for --no-uuid'
+ )
+ _arguments '*:: :->subcmds'
+ _describe -t commands "nvme ocp set-dssd-power-state-feature options" _set_dssd_power_state_feature
+ ;;
(*)
_files
;;
clear-pcie-correctable-error-counters':Clear PCIe correctable error counters'
vs-fw-activate-history':Get firmware activation history log'
device-capability-log':Get Device capability log'
+ set-dssd-power-state-feature':Set DSSD Power State'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ocp options" _ocp
"device-capability-log")
opts+=" --output-format= -o"
;;
+ "set-dssd-power-state-feature")
+ opts+=" --power-state= -p --no-uuid -n --save -s"
+ ;;
"help")
opts+=$NO_OPTS
;;
set-latency-monitor-feature internal-log \
clear-fw-activate-history eol-plp-failure-mode \
clear-pcie-correctable-error-counters \
- vs-fw-activate-history device-capability-log"
+ vs-fw-activate-history device-capability-log \
+ set-dssd-power-state-feature"
)
# Associative array mapping plugins to coresponding option completions