consolekit
Additional utilities for click.
Attention
consolekit disables Python’s readline history to prevent unrelated histories appearing for prompts.
If the original behaviour is desired run:
import readline
readline.set_history_length(-1)
readline.set_auto_history(True)
Functions:
|
Shortcut to |
|
Shortcut to |
|
Shortcut to |
-
click_command(name=None, cls=None, **attrs)[source] Shortcut to
click.command(), with the-h/--helpoption enabled and a max width of120.
-
click_group(name=None, cls=None, **attrs)[source] Shortcut to
click.group(), with the-h/--helpoption enabled and a max width of120.
-
option(*param_decls, **attrs)[source] Shortcut to
click.option(), but usingconsolekit.input.confirm()when prompting for a boolean flag.- Parameters
*param_decls (
str)**attrs (
Any) – Additional keyword arguments passed toclick.command().
- Return type
Callable[[~_C],~_C]