Skip to content

Commit baec0f0

Browse files
jeff-lien-sndkigaw
authored andcommitted
ocp: Update completions for ocp internal-log and telemetry-string-log
Update the output-format and output-file parameters to match changes made with these commits: e8b8c7f and 60733d8. Signed-off-by: jeff-lien-sndk <[email protected]>
1 parent a6d01ef commit baec0f0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

completions/_nvme

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,16 @@ _nvme () {
194194
/dev/nvme':supply a device to use (required)'
195195
--telemetry-type=':Telemetry Type; host, host0, host1 or controller generated'
196196
-t':alias for --telemetry-type'
197-
--data-area=':Telemetry Data Area; 1 or 2'
197+
--data-area=':Telemetry Data Area; 1, 2, 3, or 4'
198198
-a':alias for --data-area'
199199
--output-file=':Output file name with path'
200-
-o':alias for --output-file'
200+
-f':alias for --output-file'
201201
--telemetry-log=':Telemetry log binary'
202202
-l':alias for --telemetry-log'
203203
--string-log=':String log binary'
204204
-s':alias for --string-log'
205205
--output-format':Output format: normal|json'
206-
-f':alias for --output-format'
206+
-o':alias for --output-format'
207207
)
208208
_arguments '*:: :->subcmds'
209209
_describe -t commands "nvme ocp internal-log options" _internal_log
@@ -296,8 +296,10 @@ _nvme () {
296296
local _telemetry_string_log
297297
_telemetry_string_log=(
298298
/dev/nvme':supply a device to use (required)'
299+
--output-format=':Output format: normal|json|binary'
300+
-o':alias for --output-format'
299301
--output-file=':Output file name with path'
300-
-o':alias for --output-file'
302+
-f':alias for --output-file'
301303
)
302304
_arguments '*:: :->subcmds'
303305
_describe -t commands "nvme ocp telemetry-string-log options" _telemetry_string_log

completions/bash-nvme-completion.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ plugin_ocp_opts () {
15981598
;;
15991599
"internal-log")
16001600
opts+=" --telemetry-log= -l --string-log= -s \
1601-
--output-file= -o --output-format= -f \
1601+
--output-file= -f --output-format= -o \
16021602
--data-area= -a --telemetry-type= -t"
16031603
;;
16041604
"clear-fw-activate-history")
@@ -1623,7 +1623,7 @@ plugin_ocp_opts () {
16231623
opts+=" --sel= -S --all -a --no-uuid -n"
16241624
;;
16251625
"telemetry-string-log")
1626-
opts+=" --output-file= -o"
1626+
opts+=" --output-file= -f --output-format= -o"
16271627
;;
16281628
"set-telemetry-profile")
16291629
opts+=" --telemetry-profile-select= -t"

0 commit comments

Comments
 (0)