cli.py
¶
Command line entrypoint.
This module declares the Plumbum CLI application, its subcommand and options.
CopierApp
¶
The Plumbum CLI application.
Attributes:
Name | Type | Description |
---|---|---|
answers_file |
SwitchAttr |
The switch for the answers file option. |
extra_paths |
SwitchAttr |
The switch for the extra paths option. |
exclude |
SwitchAttr |
The switch for the exclude option. |
vcs_ref |
SwitchAttr |
The switch for the VCS ref option. |
subdirectory |
SwitchAttr |
The switch for the subdirectory option. |
pretend |
Flag |
The flag for the pretend option. |
force |
Flag |
The flag for the force option. |
skip |
Flag |
The flag for the skip option. |
quiet |
Flag |
The flag for the quiet option. |
only_diff |
|
The flag for the only diff option. |
data_switch(self, values)
¶
Update data with provided values.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
values |
List[str] |
The list of values to apply.
Each value in the list is of the following form: |
required |
Source code in copier/cli.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|
CopierCopySubApp
¶
The copy
subcommand.
CopierUpdateSubApp
¶
The update
subcommand.
Attributes:
Name | Type | Description |
---|---|---|
only_diff |
Flag |
The flag for the only diff option. |
handle_exceptions(method)
¶
Handle keyboard interruption while running a method.
Source code in copier/cli.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|