Skip to content
Myr

api.rst

This file

Path

docs/api.rst

122 lines · 1.5 KiB

Last changed by

Exposed parserArmin Ronacherbefore adoption1726e47

History of this file

Take it

Initial commitArmin Ronacherbefore adoption4101de3

lines 1–27
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_option27

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

lines 28–31why, one step back
28.. autofunction:: pass_context
2930.. autofunction:: pass_obj31

Documented missing functionArmin Ronacherbefore adoption58a16f1

lines 32–33why, one step back
32.. autofunction:: make_pass_decorator
33

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

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

Initial commitArmin Ronacherbefore adoption4101de3

line 36
36

Implemented and exposed click.echoArmin Ronacherbefore adoption95c24b3

lines 37–38why, one step back
37.. autofunction:: echo
38

Added an echo function with pager supportArmin Ronacherbefore adoption54c90d0

lines 39–40why, one step back
39.. autofunction:: echo_via_pager
40

Initial commitArmin Ronacherbefore adoption4101de3

lines 41–58
41.. autofunction:: prompt
4243.. autofunction:: confirm4445.. autofunction:: get_terminal_size4647Commands48--------4950.. autoclass:: Command51 :members:5253.. autoclass:: MultiCommand54 :members:5556.. autoclass:: Group57 :members:58

Implemented basic command collectionsArmin Ronacherbefore adoption055a8e6

lines 59–61why, one step back
59.. autoclass:: CommandCollection
60 :members:61

Initial commitArmin Ronacherbefore adoption4101de3

lines 62–88
62Parameters
63----------6465.. autoclass:: Parameter66 :members:6768.. autoclass:: Option6970.. autoclass:: Argument7172Context73-------7475.. autoclass:: Context76 :members:7778Types79-----8081.. autodata:: STRING8283.. autodata:: INT8485.. autodata:: FLOAT8687.. autodata:: BOOL88

Added UUID type supportArmin Ronacherbefore adoption4ed961d

lines 89–90why, one step back
89.. autodata:: UUID
90

Initial commitArmin Ronacherbefore adoption4101de3

lines 91–92
91.. autoclass:: File
92

Added choice supportArmin Ronacherbefore adoption9eacc90

lines 93–94why, one step back
93.. autoclass:: Choice
94

Added missing type to docsArmin Ronacherbefore adoption065ce06

lines 95–96why, one step back
95.. autoclass:: IntRange
96

Initial commitArmin Ronacherbefore adoption4101de3

lines 97–101
97.. autoclass:: ParamType
9899Exceptions100----------101

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 102–103why, one step back
102.. autoexception:: ClickException
103

Initial commitArmin Ronacherbefore adoption4101de3

lines 104–106
104.. autoexception:: Abort
105106.. autoexception:: UsageError

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 107–108why, one step back
107
108.. autoexception:: FileError

Exposed formattingArmin Ronacherbefore adoption97b505c

lines 109–116why, one step back
109
110Formatting111----------112113.. autoclass:: HelpFormatter114 :members:115116.. autofunction:: wrap_text

Exposed parserArmin Ronacherbefore adoption1726e47

lines 117–122why, one step back
117
118Parsing119-------120121.. autoclass:: OptionParser122 :members: