Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Version 7.0
-----------

(upcoming release with new features, release date to be decided)
- Added support for bash completions containing spaces. See #773.
- Added support for dynamic bash completion from a user-supplied callback.
See #755
- Added support for bash completion of type=click.Choice for Options and
Expand Down
1 change: 1 addition & 0 deletions click/_bashcomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

COMPLETION_SCRIPT = '''
%(complete_func)s() {
local IFS=$'\n'
COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \\
COMP_CWORD=$COMP_CWORD \\
%(autocomplete_var)s=complete $1 ) )
Expand Down