Click-extra

Latest version: v4.8.3

Safety actively analyzes 640974 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 13

4.6.4

- Fix collection of subcommand parameters in `--show-params` output. Closes {issue}`725`.
- Set `%(package_name)` in `--version` to file name for CLI that are standalone scripts and not packaged. Fix {issue}`729`.
- Allow standalone scripts to define a local `__version__` variable to set the `%(version)` element in `--version` output.
- Allow building of documentation with Sphinx 7.
- Run tests on `macos-13`. Remove tests on `macos-11`.
- Ignore unstable tests on upcoming Click `8.2.x` / `main` branch.

4.6.3

- Forces `ExtraContext` to properly close itself before exiting the program, to trigger all callbacks.

4.6.2

- Remove workaround for Cloup handling of `command_class` default on custom groups.
- Force `extra_group` to produce sub-groups of the same class.

4.6.1

- Inspect in `--version` the whole execution stack to find the package in which the user's CLI is implemented.

4.6.0

- Keep the promise of drop-in replacement for `version_option` which is now a proxy to Click's original.
- Rename the colored, enhanced `--version` option to `extra_version_option` for its decorator, and `ExtraVersionOption` for its class.
- Activate colors on `extra_command` and `extra_group` by default, even if stripped of all their default parameters. Closes {issue}`534` and {pr}`543`.
- Expose location and content of user's configuration file in the Context's `meta` property. Closes {issue}`673`.
- Render specs of hidden parameters in `--show-params` output. Fixes {issue}`689`.
- Swap `Exposed` and `Allowed in conf?` columns in `--show-params` output.
- Add a `hidden` column to `--show-params` output. Refs {issue}`689`.

4.5.0

- Expose verbosity level name, table format ID and CLI start timestamp in the Context's `meta` property.
- Refactor `VersionOption`. Introduce internal caching.
- Expose version string elements in the Context's `meta` property. Closes {issue}`325`.
- Remove `print_env_info` option from `VersionOption` class and `version_option` decorators.
- Add new `%(env_info)` element. Default value is the same as what the removed `print_env_info` produced (i.e. a JSON dump of the environment).
- Allow `%(env_info)` value to be set by user on `--version`.
- Rename in version string formatting the `%(prog)` element to `%(prog_name)`, and `%(package)` to `%(package_name)`.
- Detect Click-specific `%(prog)` and `%(package)` and raise a deprecated warning.
- Do not print environment info in `--version` by default. Change default message from `%(prog)s, version %(version)s\n%(env_info)` to `%(prog_name)s, version %(version)s`.
- Automaticcaly augment version string with environment info in `DEBUG` log level.
- Expose `click_extra.search_params` utility.

Page 3 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.