@@ -27,7 +27,7 @@ __pgbackrest_command_options_values() {
27
27
echo ${command_options_values}
28
28
}
29
29
30
- # The '--output' option is available for 'repo-ls' and 'info' commands with the same values.
30
+ # The '--output' option is available for 'repo-ls', 'manifest' and 'info' commands with the same values.
31
31
# For 'repo-ls' command displayed additional information in the same format.
32
32
# To simplify the solution and not write additional regexp, the option values are specified directly.
33
33
__pgbackrest_command_options_values_output () {
@@ -36,11 +36,16 @@ __pgbackrest_command_options_values_output() {
36
36
37
37
# The '--output' option is available for 'verify' command with another values.
38
38
# As well as other formatting of the hint text.
39
- # When new commands with unique options list appear, refactoring will be required.
40
39
__pgbackrest_command_options_values_output_verify () {
41
40
echo " none" $' \n ' " text"
42
41
}
43
42
43
+ # The '--output' option is available for 'version' command with another values.
44
+ # As well as other formatting of the hint text.
45
+ __pgbackrest_command_options_values_output_version () {
46
+ echo " text" $' \n ' " num"
47
+ }
48
+
44
49
# The '--buffer-size' displays values in the user friendly format starting from pgBackRest v2.37.
45
50
# In earlier versions, values in bytes will be substituted.
46
51
# https://github.com/pgbackrest/pgbackrest/pull/1557
@@ -173,6 +178,9 @@ _pgbackrest() {
173
178
verify)
174
179
COMPREPLY=($( compgen -W " $( __pgbackrest_command_options_values_output_verify) " -- ${cur} ) )
175
180
return 0;;
181
+ version)
182
+ COMPREPLY=($( compgen -W " $( __pgbackrest_command_options_values_output_version) " -- ${cur} ) )
183
+ return 0;;
176
184
* )
177
185
COMPREPLY=($( compgen -W " $( __pgbackrest_command_options_values_output) " -- ${cur} ) )
178
186
return 0;;
@@ -250,6 +258,9 @@ _pgbackrest() {
250
258
verify)
251
259
COMPREPLY=($( compgen -W " $( __pgbackrest_command_options_values_output_verify) " -- ${cur} ) )
252
260
return 0;;
261
+ version)
262
+ COMPREPLY=($( compgen -W " $( __pgbackrest_command_options_values_output_version) " -- ${cur} ) )
263
+ return 0;;
253
264
* )
254
265
COMPREPLY=($( compgen -W " $( __pgbackrest_command_options_values_output) " -- ${cur} ) )
255
266
return 0;;
0 commit comments