summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '8.1.x'HEADmainSagi Buchbinder Shadur2023-05-031-1/+5
|\
| * Update dependencies using pip-compile-multi (#2508)Sagi Buchbinder-Shadur2023-05-031-1/+5
| |
* | switch to pyproject.tomlDavid Lord2023-01-191-1/+1
|/
* disallow use of is_flag and multiple in optionJohn Reese2022-04-281-0/+18
|
* treat empty auto_envvar as NoneDavid Lord2022-03-281-3/+4
|
* shell completion prioritizes option values over new optionsPaul Spangler2022-03-284-0/+121
| | | | | | | Allow option values that start with an option prefix to complete rather than treating them like new options. Don't treat count options as needing a value to complete.
* fix ParamType.to_info_dict() with no nameMatthew Martin2022-03-191-0/+7
|
* group without command passes return value to result callbackDavid Lord2022-03-191-4/+4
|
* fix test_detect_program_nameDavid Lord2022-03-171-11/+3
|
* command decorator params argumentDavid Lord2022-02-211-0/+14
|
* glob expansion on Windows doesn't fail on invalid valuesDavid Lord2022-02-211-0/+2
|
* allow empty str input for promptunparalleled-js2022-02-211-6/+11
|
* Store raw help string for commandsStephen Finucane2022-02-201-0/+14
| | | | | | | | | | | | | Some tools, such as sphinx-click [1], may wish to access the full help string for a command including any text after the form feed character (which indicates truncation [2]). Make this possible by storing the help string without truncation and instead truncate when we use this string (i.e. truncate on load, not on store). [1] https://github.com/click-contrib/sphinx-click/issues/56 [2] https://click.palletsprojects.com/en/latest/documentation/#truncating-help-texts Signed-off-by: Stephen Finucane <stephen@that.guru>
* enforce required flagDanny Sepler2022-02-201-0/+9
|
* Option.show_default now overrides Context.show_defaultGianluca Gippetto2022-02-201-1/+22
| | | | Previously, it was the opposite.
* command and group decorator parentheses are optionalAngus L'Herrou2022-02-191-0/+37
|
* parametrize bool switch and flag testsDavid Lord2022-02-191-26/+25
| | | | Co-authored-by: Maximilian Wassink <wassink.maximilian@protonmail.com>
* parametrize some command testsIsrael Teneda2022-02-191-38/+24
|
* replace for loop with parametrizebdista2022-02-191-15/+15
|
* parametrize chain testsShayegan Hooshyari2022-02-191-31/+28
|
* parametrize basic option testsDavid Lord2022-02-191-64/+74
| | | | Co-authored-by: BALaka-18 <balaka2605@gmail.com>
* Merge branch '8.0.x'David Lord2022-01-131-0/+13
|\
| * Allow a callable default to have its own string representationKrzysztof Kotlenga2021-12-281-0/+13
| | | | | | | | | | | | | | | | | | | | | | 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
* | remove deprecated Command autocompletion parameterDavid Lord2021-11-101-14/+0
| |
* | Merge branch '8.0.x'David Lord2021-10-252-2/+18
|\ \ | |/
| * open_file hanldes pathlib.Path("-")David Lord2021-10-252-2/+18
| |
* | Merge branch '8.0.x'David Lord2021-10-104-61/+49
|\ \ | |/
| * invoke type casts default valuesDavid Lord2021-10-101-7/+9
| |
| * click.confirm preserves prompt when readline is importedAlex Ball2021-10-101-2/+2
| | | | | | | | same fix as for click.prompt in 8.0.0
| * use pathlib to resolve symlinksDavid Lord2021-10-102-52/+38
| |
* | Merge branch '8.0.x'David Lord2021-10-081-3/+49
|\ \ | |/
| * option with multiple and flag_value replaces internal placeholderIvan Kapelyukhin2021-10-081-0/+23
| | | | | | | | Co-authored-by: David Lord <davidism@gmail.com>
| * getting default value doesn't perform type castDavid Lord2021-10-081-2/+17
| |
| * count help doesn't show default range typeDavid Lord2021-10-071-2/+10
| |
* | Merge branch '8.0.x'David Lord2021-10-051-2/+10
|\ \ | |/
| * Add test for resetting attributes in `click.style()`Jasper Spaans2021-09-261-0/+8
| |
| * 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 remote-tracking branch 'origin/8.0.x'David Lord2021-08-141-0/+11
|\ \ | |/
| * fix symlink testschima2021-08-131-12/+10
| |
| * revert path prefix stripping, modify test to work with prefixcAtaman2021-08-121-0/+13
| |
* | Merge remote-tracking branch 'origin/8.0.x'David Lord2021-08-103-3/+50
|\ \ | |/
| * use sys.exit() instead of _fast_exit()taran_lu2021-08-051-3/+0
| |
| * resolve relative symlinks to the containing directorycAtaman2021-08-052-0/+50
| |
* | show_default doesn't show False default for single boolean flagcAtaman2021-08-052-6/+28
|/
* completion arguments may start with a "/"Sam Schott2021-07-041-0/+8
|
* don't show empty multiple=True defaultPatryk Bęza2021-07-041-0/+10
|
* Fix is_bool_flag being set to True even if is_flag is FalseGianluca Gippetto2021-07-031-0/+20
| | | | Fixes #1925.
* show help text with invalid defaultDavid Lord2021-05-192-1/+18
|
* return resolved name, not original nameDavid Lord2021-05-191-0/+14
|
* detect type from flag_valueDavid Lord2021-05-181-0/+7
|