click-default-group icon indicating copy to clipboard operation
click-default-group copied to clipboard

Extends click.Group to invoke a command without explicit subcommand name.

Results 12 click-default-group issues
Sort by recently updated
recently updated
newest added

Because of the missing type hints, when using `cls=DefaultGroup`it is necessary to use `# type: ignore` to prevent errors like: ``` error: Untyped decorator makes function "my_function" untyped [misc] ```...

This branch contains type hints to match click 8.1.7. It also contains some other changes in order to get mypy running happily, including: * adding mypy to the github actions...

It's not actually "patch" -- it's complete rewrite. :-( However in practice only behavior it changes is "only group options passed with `default_if_no_args=True`". Thanks @edobez for test script.

If `_{prog_name}_COMPLETE` is set, the click will execute completion instead of normal flow. On completion, adding the default command name to arg cause trouble.

Spotted this for my `llm` command, which uses `click-default-group` to set the default command to `llm prompt`. If you run this: ```bash llm -- '--help means what?' ``` You get...

When installing `towncrier` in Python 3.11 using pip 23.0.1, I got the warning: ``` DEPRECATION: click-default-group is being installed using the legacy 'setup.py install' method, because it does not have...

The source tarball distributed on PyPI does not include the tests: ``` > curl -fsSL 'https://files.pythonhosted.org/packages/source/c/click-default-group/click-default-group-1.2.2.tar.gz' | tar -tz click-default-group-1.2.2/ click-default-group-1.2.2/PKG-INFO click-default-group-1.2.2/README.md click-default-group-1.2.2/click_default_group.egg-info/ click-default-group-1.2.2/click_default_group.egg-info/PKG-INFO click-default-group-1.2.2/click_default_group.egg-info/SOURCES.txt click-default-group-1.2.2/click_default_group.egg-info/dependency_links.txt click-default-group-1.2.2/click_default_group.egg-info/requires.txt click-default-group-1.2.2/click_default_group.egg-info/top_level.txt click-default-group-1.2.2/click_default_group.py click-default-group-1.2.2/setup.cfg...

This project uses the BSD 3-clause license, which requires that the license be distributed with all copies of the source code: ``` Redistributions of source code must retain the above...

As title says, a missing command error is shown when only group options are passed to the prompt. The expected behavior is that group options are handled by the group...

Due to the use of custom class, I discovered that I cannot add the default group to a group that is already using it: ``` from click_help_colors import HelpColorsGroup, HelpColorsCommand...