Skip to content
Myr

api.rst

This file

Path

docs/api.rst

142 lines · 1.7 KiB

Last changed by

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

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–46
41.. autofunction:: prompt
4243.. autofunction:: confirm4445.. autofunction:: get_terminal_size46

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

lines 47–50why, one step back
47.. autofunction:: get_binary_stream
4849.. autofunction:: get_text_stream50

Initial commitArmin Ronacherbefore adoption4101de3

lines 51–53
51Commands
52--------53

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

lines 54–56why, one step back
54.. autoclass:: BaseCommand
55 :members:56

Initial commitArmin Ronacherbefore adoption4101de3

lines 57–65
57.. autoclass:: Command
58 :members:5960.. autoclass:: MultiCommand61 :members:6263.. autoclass:: Group64 :members:65

Implemented basic command collectionsArmin Ronacherbefore adoption055a8e6

lines 66–68why, one step back
66.. autoclass:: CommandCollection
67 :members:68

Initial commitArmin Ronacherbefore adoption4101de3

lines 69–95
69Parameters
70----------7172.. autoclass:: Parameter73 :members:7475.. autoclass:: Option7677.. autoclass:: Argument7879Context80-------8182.. autoclass:: Context83 :members:8485Types86-----8788.. autodata:: STRING8990.. autodata:: INT9192.. autodata:: FLOAT9394.. autodata:: BOOL95

Added UUID type supportArmin Ronacherbefore adoption4ed961d

lines 96–97why, one step back
96.. autodata:: UUID
97

Initial commitArmin Ronacherbefore adoption4101de3

lines 98–99
98.. autoclass:: File
99

Implemented the Path typeArmin Ronacherbefore adoption2e7c39c

lines 100–101why, one step back
100.. autoclass:: Path
101

Added choice supportArmin Ronacherbefore adoption9eacc90

lines 102–103why, one step back
102.. autoclass:: Choice
103

Added missing type to docsArmin Ronacherbefore adoption065ce06

lines 104–105why, one step back
104.. autoclass:: IntRange
105

Initial commitArmin Ronacherbefore adoption4101de3

lines 106–110
106.. autoclass:: ParamType
107108Exceptions109----------110

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 111–112why, one step back
111.. autoexception:: ClickException
112

Initial commitArmin Ronacherbefore adoption4101de3

lines 113–115
113.. autoexception:: Abort
114115.. autoexception:: UsageError

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 116–117why, one step back
116
117.. autoexception:: FileError

Exposed formattingArmin Ronacherbefore adoption97b505c

lines 118–125why, one step back
118
119Formatting120----------121122.. autoclass:: HelpFormatter123 :members:124125.. autofunction:: wrap_text

Exposed parserArmin Ronacherbefore adoption1726e47

lines 126–131why, one step back
126
127Parsing128-------129130.. autoclass:: OptionParser131 :members:

Moved the test code into the APIArmin Ronacherbefore adoptionc265355

lines 132–142why, one step back
132
133Testing134-------135136.. currentmodule:: click.testing137138.. autoclass:: CliRunner139 :members:140141.. autoclass:: Result142 :members: