Skip to content
Myr

Merge pull request #773 from stopthatcow/feature/allow_spaces_in_completions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Allow spaces in bash completion results

authored by Markus Unterwaditzer · committed by GitHub · parents b224988, a1d022f · Browse files · 2 files+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−0 removed

  • other:+2 added−0 removed

2 files+2 added−0 removed

modified:click/_bashcomplete.py+1 added
10 unmodified lines
11WORDBREAK = '='1213COMPLETION_SCRIPT = '''14%(complete_func)s() {15 local IFS=$'\n'16 COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \\17 COMP_CWORD=$COMP_CWORD \\18 %(autocomplete_var)s=complete $1 ) )19 return 0
184 unmodified lines
modified:CHANGES+1 added
5 unmodified lines
6Version 7.07-----------89(upcoming release with new features, release date to be decided)10- Added support for bash completions containing spaces. See #773.11- Added support for dynamic bash completion from a user-supplied callback.12 See #755.13- Added support for bash completion of type=click.Choice for Options and14 Arguments. See #535.
370 unmodified lines