summaryrefslogtreecommitdiff
path: root/src/click
Commit message (Collapse)AuthorAgeFilesLines
* param=None is the same as not passing the paramGianluca Gippetto2022-02-202-6/+7
|
* Option.show_default now overrides Context.show_defaultGianluca Gippetto2022-02-201-15/+32
| | | | Previously, it was the opposite.
* keep !r format for nowDavid Lord2022-02-201-3/+3
|
* add an ability to check that a Path has an executable bit setNicky Sielicki2022-02-191-8/+25
|
* command and group decorator parentheses are optionalAngus L'Herrou2022-02-192-5/+85
|
* remove utf-8 detectionDavid Lord2022-02-182-105/+0
|
* Merge branch '8.0.x'David Lord2022-02-181-1/+1
|\
| * release version 8.0.4David Lord2022-02-181-1/+1
| |
| * Fix type for `file` argumentYourun-Proger2022-02-181-1/+1
| |
* | Merge branch '8.0.x'David Lord2022-02-171-1/+1
|\ \ | |/
| * Fix typing in click.secho functionJonxslays2022-01-161-1/+1
| |
* | Merge branch '8.0.x'David Lord2022-01-133-4/+5
|\ \ | |/
| * Update shell completion to use COMPREPLY instead of COMREPLY for BashAshwin Madavan2021-12-281-2/+2
| |
| * Allow a callable default to have its own string representationKrzysztof Kotlenga2021-12-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | As it was before 78a62b37c956e71b32689a0d5c75a684aa9ab56d. A callable can also be an object with __call__ and __str__ defined, in which case it makes sense to use it. Don't try too hard to show something else instead, because the developer most likely knows what he (or she) is doing. https://github.com/pallets/click/issues/2099
| * Fix TypeVar for decorators that handle CommandsDavid Euresti2021-12-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old type var would throw away the types of Callables. ``` import click @click.option("--name", prompt="Your name", help="The person to greet.") def hello(name: str) -> None: ... reveal_type(hello) # note: Revealed type is 'def (*Any, **Any) -> Any' ``` With this small adjustment mypy now knows that it's a `'def (name: builtins.str)'`
* | Merge remote-tracking branch 'origin/8.0.x'David Lord2021-12-263-3/+3
|\ \ | |/
| * Fix typo in docsJad El Kik2021-12-261-1/+1
| | | | | | Follow up to #2107
| * fix typos1809092021-12-262-2/+2
| |
* | Merge remote-tracking branch 'origin/8.0.x'David Lord2021-12-263-13/+10
|\ \ | |/
| * remove duplicate typing importsAngus L'Herrou2021-12-263-13/+10
| |
* | Merge branch '8.0.x'David Lord2021-12-265-9/+5
|\ \ | |/
| * fix new mypy findingsupdate-requirementsDavid Lord2021-12-263-7/+5
| |
| * update requirementsDavid Lord2021-12-262-2/+0
| |
* | remove deprecated get_os_argsDavid Lord2021-11-102-20/+0
| |
* | remove deprecated get_terminal_sizeDavid Lord2021-11-102-21/+0
| |
* | remove deprecated Command autocompletion parameterDavid Lord2021-11-101-35/+0
| |
* | remove deprecated Group.resultcallbackDavid Lord2021-11-101-11/+0
| |
* | Merge branch '8.0.x'David Lord2021-10-253-38/+44
|\ \ | |/
| * update docs for open_file and types.PathDavid Lord2021-10-252-35/+41
| |
| * open_file hanldes pathlib.Path("-")David Lord2021-10-251-3/+3
| |
* | Merge branch '8.0.x'David Lord2021-10-103-17/+12
|\ \ | |/
| * release version 8.0.3David Lord2021-10-101-1/+1
| |
| * invoke type casts default valuesDavid Lord2021-10-101-1/+3
| |
| * click.confirm preserves prompt when readline is importedAlex Ball2021-10-101-2/+4
| | | | | | | | same fix as for click.prompt in 8.0.0
| * use pathlib to resolve symlinksDavid Lord2021-10-101-14/+5
| |
* | Merge branch '8.0.x'David Lord2021-10-081-15/+19
|\ \ | |/
| * release version 8.0.2David Lord2021-10-081-1/+1
| |
| * option with multiple and flag_value replaces internal placeholderIvan Kapelyukhin2021-10-081-0/+8
| | | | | | | | Co-authored-by: David Lord <davidism@gmail.com>
| * getting default value doesn't perform type castDavid Lord2021-10-081-14/+6
| |
| * count help doesn't show default range typeDavid Lord2021-10-071-1/+5
| |
* | Merge branch '8.0.x'David Lord2021-10-051-3/+3
|\ \ | |/
| * Fix copy-paste errors in `click.style()`Jasper Spaans2021-09-261-2/+2
| | | | | | | | | | It looks like the code related to `underline` was copy-pasted, and not all the escape codes got put in correctly.
| * Merge pull request #2064 from Yourun-proger/fixDavid Lord2021-09-261-1/+1
| |\ | | | | | | Fix type annotation for `type` arg
| | * Fix type annotation for `type` argYourun-Proger2021-09-261-1/+1
| | |
* | | Merge branch '8.0.x'David Lord2021-09-266-10/+10
|\ \ \ | |/ /
| * | use exception chainingDavid Lord2021-09-266-10/+10
| |/ | | | | | | fixes flake8-bugbear B904
* | Merge remote-tracking branch 'origin/8.0.x'David Lord2021-08-141-1/+2
|\ \ | |/
| * Always close file descriptor to tempfilepager.Jay Crotts2021-08-141-2/+1
| |
| * Add check for WIN in _tempfilepager finally block to prevent file in use ↵Jay Crotts2021-08-141-1/+3
| | | | | | | | error on windows
* | Merge remote-tracking branch 'origin/8.0.x'David Lord2021-08-141-5/+5
|\ \ | |/