Skip to content

Commit

Permalink
Merge pull request #7 from woblerr/sync_with_2_41
Browse files Browse the repository at this point in the history
Skip completion for repo-storage-upload-chunk-size parameter.
  • Loading branch information
woblerr authored Sep 22, 2022
2 parents 55e7f64 + b58da76 commit 617c0b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pgBackRest Bash Completion
A script that adds bash completion for pgBackRest (https://pgbackrest.org/).
A script that adds bash completion for pgBackRest (https://pgbackrest.org).

## Usage

Expand Down
7 changes: 7 additions & 0 deletions pgbackrest-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ _pgbackrest() {
COMPREPLY=($(compgen -W "$(__pgbackrest_command_options_values)" -- ${cur}))
return 0;;
esac;;
--repo-storage-upload-chunk-size)
# Nothing to do.
# The documentation provides default values for different repo types.
# But there are no definite values for the parameter.
return 1;;
*)
if [[ ${prev} =~ ${arg_regex} ]]; then
COMPREPLY=($(compgen -W "$(__pgbackrest_command_options_values)" -- ${cur}))
Expand Down Expand Up @@ -236,6 +241,8 @@ _pgbackrest() {
COMPREPLY=($(compgen -W "$(__pgbackrest_command_options_values)" -- ${cur}))
return 0;;
esac;;
--repo-storage-upload-chunk-size)
return 1;;
*)
if [[ ${prev} =~ ${arg_regex} ]]; then
COMPREPLY=($(compgen -W "$(__pgbackrest_command_options_values)" -- ${cur}))
Expand Down

0 comments on commit 617c0b5

Please sign in to comment.