Skip to content
Myr

api.rst

This file

Path

docs/api.rst

167 lines · 2.1 KiB

Last changed by

Added click.pauseArmin Ronacherbefore adoptionc9eb780

History of this file

Take it

The walk stopped after 200 commits: lines older than dc25c8b point at it.

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

lines 1–33why, one step back
1API
2===34.. module:: click56This part of the documentation shows the full API reference of all public7classes and functions.89Decorators10----------1112.. autofunction:: command1314.. autofunction:: group1516.. autofunction:: argument1718.. autofunction:: option1920.. autofunction:: password_option2122.. autofunction:: confirmation_option2324.. autofunction:: version_option2526.. autofunction:: help_option2728.. autofunction:: pass_context2930.. autofunction:: pass_obj3132.. autofunction:: make_pass_decorator33

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 34–35why, one step back
34Utilities
35---------

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

lines 36–44why, one step back
36
37.. autofunction:: echo3839.. autofunction:: echo_via_pager4041.. autofunction:: prompt4243.. autofunction:: confirm44

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

lines 45–46why, one step back
45.. autofunction:: progressbar
46

Added support for screen clearing.Armin Ronacherbefore adoption09ba1e9

lines 47–48why, one step back
47.. autofunction:: clear
48

Added style and unstyle to docs.Armin Ronacherbefore adoption22241e4

lines 49–52why, one step back
49.. autofunction:: style
5051.. autofunction:: unstyle52

Added sechoArmin Ronacherbefore adoption97f942c

lines 53–54why, one step back
53.. autofunction:: secho
54

Added an edit function.Armin Ronacherbefore adoption721e527

lines 55–56why, one step back
55.. autofunction:: edit
56

Added click.launchArmin Ronacherbefore adoptionba36392

lines 57–58why, one step back
57.. autofunction:: launch
58

Added getchar()Armin Ronacherbefore adoption88c97ef

line 59why, one step back
59.. autofunction:: getchar

Added filename format functionArmin Ronacherbefore adoption31043c3

line 60why, one step back
60

Added click.pauseArmin Ronacherbefore adoptionc9eb780

lines 61–62why, one step back
61.. autofunction:: pause
62

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

lines 63–64why, one step back
63.. autofunction:: get_terminal_size
64

Improved stream support and added it to public API.Armin Ronacherbefore adoption002c38d

lines 65–67why, one step back
65.. autofunction:: get_binary_stream
6667.. autofunction:: get_text_stream

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

lines 68–69why, one step back
68
69.. autofunction:: get_app_dir

Added getchar()Armin Ronacherbefore adoption88c97ef

lines 70–71why, one step back
70
71.. autofunction:: format_filename

Improved stream support and added it to public API.Armin Ronacherbefore adoption002c38d

line 72why, one step back
72

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

lines 73–75why, one step back
73Commands
74--------75

Added a base command for dispatching to other parsers.Armin Ronacherbefore adoption955beb8

lines 76–78why, one step back
76.. autoclass:: BaseCommand
77 :members:78

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

lines 79–121why, one step back
79.. autoclass:: Command
80 :members:8182.. autoclass:: MultiCommand83 :members:8485.. autoclass:: Group86 :members:8788.. autoclass:: CommandCollection89 :members:9091Parameters92----------9394.. autoclass:: Parameter95 :members:9697.. autoclass:: Option9899.. autoclass:: Argument100101Context102-------103104.. autoclass:: Context105 :members:106107Types108-----109110.. autodata:: STRING111112.. autodata:: INT113114.. autodata:: FLOAT115116.. autodata:: BOOL117118.. autodata:: UUID119120.. autoclass:: File121

Implemented the Path typeArmin Ronacherbefore adoption2e7c39c

lines 122–123why, one step back
122.. autoclass:: Path
123

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

lines 124–125why, one step back
124.. autoclass:: Choice
125

Added missing type to docsArmin Ronacherbefore adoption065ce06

lines 126–127why, one step back
126.. autoclass:: IntRange
127

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

line 128why, one step back
128.. autoclass:: ParamType

Added multi envvar docsArmin Ronacherbefore adoption61eb5e2

line 129why, one step back
129 :members:

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

lines 130–133why, one step back
130
131Exceptions132----------133

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 134–135why, one step back
134.. autoexception:: ClickException
135

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

lines 136–138why, one step back
136.. autoexception:: Abort
137138.. autoexception:: UsageError

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

line 139why, one step back
139

Added support for BadParameter exceptions.Armin Ronacherbefore adoption1407ecb

lines 140–141why, one step back
140.. autoexception:: BadParameter
141

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

line 142why, one step back
142.. autoexception:: FileError

Added example for pagerArmin Ronacherbefore adoptiondc25c8b

lines 143–150why, one step back
143
144Formatting145----------146147.. autoclass:: HelpFormatter148 :members:149150.. autofunction:: wrap_text

Exposed parserArmin Ronacherbefore adoption1726e47

lines 151–156why, one step back
151
152Parsing153-------154155.. autoclass:: OptionParser156 :members:

Moved the test code into the APIArmin Ronacherbefore adoptionc265355

lines 157–167why, one step back
157
158Testing159-------160161.. currentmodule:: click.testing162163.. autoclass:: CliRunner164 :members:165166.. autoclass:: Result167 :members: