v8.2.0
- Add a
--export-config FORMAToption to every@commandand@group: it renders the resolved configuration on<stdout>in any writable format (toml,yaml,json,json5,jsonc,hjson,xml), then exits. AddsExportConfigOption,@export_config_optionandSERIALIZABLE_FORMATSto the public API. - Add
--theme=auto: it selects thedarkorlightpalette from the terminal background, detected fromCLITHEME,COLORFGBGor a live OSC 11 query; the default staysdark. Addsresolve_backgroundandquery_osc_backgroundtoclick_extra.color,resolve_auto_themeandAUTO_THEMEtoclick_extra.theme. - Add
run_lanes(func, lanes)andresolve_jobs(ctx, count)toclick_extra.execution: run each lane serially while distinct lanes run concurrently, sized by--jobs; expose the worker-count policy shared withrun_jobs. Aserial_at_debugkeyword collapses both fan-outs to sequential atDEBUGverbosity. - Add the always-on
matrixSphinx directive, rendering a package's release compatibility matrix from its git tags, for the Python interpreter ({matrix} python) or a dependency ({matrix} <distribution>) axis; a comment-marker form renders the embedded table on GitHub too. - Add the
click-extra refresh-directivescommand (wrappingclick_extra.sphinx.matrix.update_matrix_blocks) to regenerate the tables embedded in{matrix}directive blocks and<!-- matrix … -->marker regions; its--checkmode flags stale tables in CI. - Publish
format_cli_promptinclick_extra.testing(was the private_format_cli_prompt): render a themed, copy-pasteable prompt simulating a CLI invocation. - Fix Carapace dynamic completion: an option's value or a subcommand argument with a custom
shell_completenow resolves through the generated spec, instead of returning empty or root-level candidates. - Fix
EnumChoiceshell completion on Click 8.4.0: completion candidates are now normalized, so they match the option's accepted values instead of appearing as raw uppercase enum names. - Fix
run_jobsblocking on Ctrl+C during parallel execution: an interrupt now drops queued items and returns immediately, instead of waiting for every in-flight task to finish. - Add a documentation page on Typer compatibility, explaining why click-extra cannot be combined with Typer and how to get the same options natively.
Full changelog: v8.1.4...v8.2.0
🛡️ VirusTotal scans
| Binary | Detections | Analysis |
|---|---|---|
click-extra-8.2.0-linux-arm64.bin |
1 / 61 | View scan |
click-extra-8.2.0-linux-x64.bin |
1 / 62 | View scan |
click-extra-8.2.0-macos-arm64.bin |
0 / 60 | View scan |
click-extra-8.2.0-macos-x64.bin |
1 / 62 | View scan |
click-extra-8.2.0-windows-arm64.exe |
2 / 68 | View scan |
click-extra-8.2.0-windows-x64.exe |
17 / 67 | View scan |