All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Explicitly export
enable_click_shell_completion
andenable_click_shell_completion_option
functions. This way, we comply with the "no-implicit-reexport" strictness in type checking when importing these functions (#14) Functionality has not changed.
- Parametrized functional testing for Ubuntu environments for Python 3.9, 3.10, 3.11 (#10)
- Autocomplete did not work properly for Python 3.11 environments. Users can manually delete incorrectly created fish configuration file ~/.config/fish/completions/{program_name}.ShellType.FISH, created from this bug (#9)
auto-click-auto
now adds a check in the shell configuration for whether the program is executable. This will keep shell sessions free from "command not found" errors when the autocompleted program is not installed system-wide. This fix also removes old configuration from the relevant shell config files (#12)
- To avoid race conditions (e.g., when running parallel tests) we handle whether a file exists at the proper moment so that we don't crash when attempting to create configuration files that already exist (#11)
- MacOS not always supported OS issue (#4)
- Functional testing for Ubuntu environments
- Program names with "-" were not correctly added to shell autocomplete configurations
- click's fix for fish autocomplete not working on click 8.1.4
- The fish configuration file for custom completions, ~/.config/fish/completions/{program_name}.fish (notice it's specific to the program name), is created if it doesn't already exist. ~/.bashrc and ~/.zshrc configuration files, which are used to set up shell completion, are generic and we can assume the users have already created them.
- Handle exception when
auto-click-auto
cannot infer the shell type from theSHELL
environment variable
- Package typing information
- Function
enable_click_shell_completion
now has theshells
positional argument set by default toNone
- Function
enable_click_shell_completion
to automatically add autocomplete support for the Bash, Zsh, and Fish shells - Decorator
enable_click_shell_completion_option
to easily add an option to Click commands for autocomplete support