module documentation
Undocumented
Class |
|
Arguments are positional parameters to a command. They generally provide fewer features than options but can have infinite ``nargs`` and are required by default. |
Class |
|
The base command implements the minimal API contract of commands. Most code will never use this as it does not implement a lot of useful functionality but it can act as the direct subclass of alternative parsing methods that do not depend on the Click parser. |
Class |
|
Commands are the basic building block of command line interfaces in Click. A basic command handles command line parsing and might dispatch more parsing to commands nested below it. |
Class |
|
A command collection is a multi command that merges multiple multi commands together into one. This is a straightforward implementation that accepts a list of different multi commands as sources and provides all the commands for each of them. |
Class |
|
The context is a special internal object that holds state relevant for the script execution at every single level. It's normally invisible to commands unless they opt-in to getting access to it. |
Class |
|
A group allows a command to have subcommands attached. This is the most common way to implement nesting in Click. |
Class |
|
A multi command is the basic implementation of a command that dispatches to subcommands. The most common version is the :class:`Group`. |
Class |
|
Options are usually optional values on the command line and have some extra features that arguments don't have. |
Class |
|
A parameter to a command comes in two versions: they are either :class:`Option`\s or :class:`Argument`\s. Other subclasses are currently not supported by design as some of the internals for parsing are intentionally not finalized. |
Class |
|
This is an :class:`~enum.Enum` that indicates the source of a parameter's value. |
Function | augment |
Context manager that attaches extra information to exceptions. |
Function | batch |
Undocumented |
Function | iter |
Given a sequence of parameters in the order as should be considered for processing and an iterable of parameters that exist, this returns a list in the correct order as they should be processed. |
Constant | F |
Undocumented |
Constant | V |
Undocumented |
Function | _check |
Check if the value is iterable but not a string. Raises a type error, or return an iterator over the value. |
Function | _check |
Undocumented |
Function | _complete |
List all the subcommands of a group that start with the incomplete value and aren't hidden. |
Context manager that attaches extra information to exceptions.
Parameters | |
ctx:Context | Undocumented |
param:t.Optional[ | Undocumented |
Returns | |
t.Iterator[ | Undocumented |
Given a sequence of parameters in the order as should be considered for processing and an iterable of parameters that exist, this returns a list in the correct order as they should be processed.
Parameters | |
invocationt.Sequence[ | Undocumented |
declarationt.Sequence[ | Undocumented |
Returns | |
t.List[ | Undocumented |
Check if the value is iterable but not a string. Raises a type error, or return an iterator over the value.
Parameters | |
value:t.Any | Undocumented |
Returns | |
t.Iterator[ | Undocumented |
Undocumented
Parameters | |
baseMultiCommand | Undocumented |
cmdstr | Undocumented |
cmd:Command | Undocumented |
register:bool | Undocumented |
List all the subcommands of a group that start with the incomplete value and aren't hidden. :param ctx: Invocation context for the group. :param incomplete: Value being completed. May be empty.
Parameters | |
ctx:Context | Undocumented |
incomplete:str | Undocumented |
Returns | |
t.Iterator[ | Undocumented |