Skip to content

Commit

Permalink
completions: Add latency default option for remaining commands
Browse files Browse the repository at this point in the history
Note: Commands using NVME_ARGS are added the option as default.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Jan 13, 2024
1 parent e4d413d commit dfd6104
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions completions/_nvme
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ _nvme () {
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme list options" _list
Expand All @@ -303,6 +305,8 @@ _nvme () {
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme list-subsys options" _listsubsys
Expand Down Expand Up @@ -359,6 +363,8 @@ _nvme () {
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-ns-lba-format options" _idns_lba_format
Expand Down Expand Up @@ -417,6 +423,8 @@ _nvme () {
local _nvmidctrl
_nvmidctrl=(
/dev/nvme':supply a device to use (required)'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme nvm-id-ctrl options" _nvmidctrl
Expand All @@ -433,6 +441,8 @@ _nvme () {
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme nvm-id-ns options" _nvmidns
Expand All @@ -449,6 +459,8 @@ _nvme () {
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme nvm-id-ns-lba-format options" _nvm_idns_lba_format
Expand All @@ -463,6 +475,8 @@ _nvme () {
-o':alias for --output-format'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme primary-ctrl-caps options" _primary_ctrl_caps
Expand Down Expand Up @@ -493,6 +507,8 @@ _nvme () {
-o':alias for --output-format'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme ns-descs options" _ns_descs
Expand All @@ -519,6 +535,8 @@ _nvme () {
-b':alias of --raw-binary'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme id-uuid options" _id_uuid
Expand Down Expand Up @@ -679,6 +697,8 @@ _nvme () {
-l':alias of --log-len'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme persistent-event-log options" _persistenteventlog
Expand All @@ -699,6 +719,8 @@ _nvme () {
-d':alias of --data-area'
--rae':Retain an Asynchronous Event'
-r':alias to --rae'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme telemetry-log options" _telemetry_log
Expand All @@ -725,6 +747,8 @@ _nvme () {
-i':alias to --nvmset-id'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme predictable-lat-log options" _predictablelatlog
Expand All @@ -747,6 +771,8 @@ _nvme () {
-o':alias for --output-format'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme changed-ns-list-log options" _changed_ns_list_log
Expand All @@ -759,6 +785,8 @@ _nvme () {
-n':alias to --namespace-id'
--raw-binary':dump infos in binary format'
-b':alias to --raw-binary'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme smart-log options" _smartlog
Expand Down Expand Up @@ -839,6 +867,8 @@ _nvme () {
-r':alias to --rae'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme endurance-event-agg-log options" _enduranceeventagglog
Expand Down Expand Up @@ -869,6 +899,8 @@ _nvme () {
-s':alias to --lsp'
--output-file=':boot partition data output write'
-f':alias for --output-file'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme boot-part-log options" _bootpartlog
Expand All @@ -890,6 +922,8 @@ _nvme () {
--cdw11=':dword 11 value, used for interrupt vector configuration only'
--raw-binary':dump infos in binary format'
-b':alias to --raw-binary'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme get-feature options" _getf
Expand All @@ -904,6 +938,8 @@ _nvme () {
-s':alias for --self-test-code'
--wait':Wait for the test to finish'
-w':alias to --wait'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme device-self-test options" _device_self_test
Expand All @@ -918,6 +954,8 @@ _nvme () {
-o':alias for --output-format'
--verbose':show infos verbosely'
-v':alias of --verbose'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme self-test-log options" _self_test_log
Expand All @@ -936,6 +974,8 @@ _nvme () {
-s':alias of --scp'
--uuid=':UUID Index field required aligned with Scope'
-U':alias of --uuid'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme lockdown options" _lockdown
Expand Down Expand Up @@ -980,6 +1020,8 @@ _nvme () {
-O':alias to --offset'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme get-property options" _get_property
Expand Down Expand Up @@ -1028,6 +1070,8 @@ _nvme () {
-x':alias of --xfer'
--offset=':starting offset, in dwords (defaults to 0, only useful if download is split across multiple files)'
-O':alias of --offset'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme fw-download options" _fwd
Expand All @@ -1044,6 +1088,8 @@ _nvme () {
-l':alias of --cap-lower'
--cap-upper=':Most significant 32 bits of the capacity in bytes'
-u':alias of --cap-upper'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme capacity-mgmt options" _fwd
Expand Down Expand Up @@ -1128,6 +1174,8 @@ _nvme () {
-S':alias of --storage-tag'
--storage-tag-check':Storage Tag field shall be checked as part of end-to-end data protection processing'
-C':alias of --storage-tag-check'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme verify options" _verify
Expand All @@ -1148,6 +1196,8 @@ _nvme () {
-a':alias of --sanact'
--ovrpat=':Overwrite pattern'
-p':alias of --ovrpat'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme sanitize options" _sanitize
Expand All @@ -1164,6 +1214,8 @@ _nvme () {
-H':alias of --human-readable'
--raw-binary':dump infos in binary format'
-b':alias of --raw-binary'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme sanitize-log options" _sanitize_log
Expand Down Expand Up @@ -1198,6 +1250,8 @@ _nvme () {
/dev/nvme':supply a device to use (required)'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme supported-log-pages options" _support
Expand Down Expand Up @@ -1909,6 +1963,8 @@ _nvme () {
(show-hostnqn)
local _show_hostnqn
_show_hostnqn=(
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme show-hostnqn options" _show_hostnqn
Expand All @@ -1933,6 +1989,8 @@ _nvme () {
-r':alias of --req-resource'
--human-readable':show infos in readable format'
-H':alias of --human-readable'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme dir-receive options" _dir_receive
Expand Down Expand Up @@ -2014,6 +2072,8 @@ _nvme () {
-v':alias of --verbose'
--ranking=':Ranking order: namespace|ctrl'
-r':alias for --ranking'
--latency':latency statistics will be output following IOCTL'
-L':alias of --latency'
)
_arguments '*:: :->subcmds'
_describe -t commands "nvme show-topology options" _showtopology
Expand Down

0 comments on commit dfd6104

Please sign in to comment.