Skip to content
Myr

api.rst

This file

Path

docs/api.rst

139 lines · 1.7 KiB

Last changed by

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

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–62
51Commands
52--------5354.. autoclass:: Command55 :members:5657.. autoclass:: MultiCommand58 :members:5960.. autoclass:: Group61 :members:62

Implemented basic command collectionsArmin Ronacherbefore adoption055a8e6

lines 63–65why, one step back
63.. autoclass:: CommandCollection
64 :members:65

Initial commitArmin Ronacherbefore adoption4101de3

lines 66–92
66Parameters
67----------6869.. autoclass:: Parameter70 :members:7172.. autoclass:: Option7374.. autoclass:: Argument7576Context77-------7879.. autoclass:: Context80 :members:8182Types83-----8485.. autodata:: STRING8687.. autodata:: INT8889.. autodata:: FLOAT9091.. autodata:: BOOL92

Added UUID type supportArmin Ronacherbefore adoption4ed961d

lines 93–94why, one step back
93.. autodata:: UUID
94

Initial commitArmin Ronacherbefore adoption4101de3

lines 95–96
95.. autoclass:: File
96

Implemented the Path typeArmin Ronacherbefore adoption2e7c39c

lines 97–98why, one step back
97.. autoclass:: Path
98

Added choice supportArmin Ronacherbefore adoption9eacc90

lines 99–100why, one step back
99.. autoclass:: Choice
100

Added missing type to docsArmin Ronacherbefore adoption065ce06

lines 101–102why, one step back
101.. autoclass:: IntRange
102

Initial commitArmin Ronacherbefore adoption4101de3

lines 103–107
103.. autoclass:: ParamType
104105Exceptions106----------107

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 108–109why, one step back
108.. autoexception:: ClickException
109

Initial commitArmin Ronacherbefore adoption4101de3

lines 110–112
110.. autoexception:: Abort
111112.. autoexception:: UsageError

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 113–114why, one step back
113
114.. autoexception:: FileError

Exposed formattingArmin Ronacherbefore adoption97b505c

lines 115–122why, one step back
115
116Formatting117----------118119.. autoclass:: HelpFormatter120 :members:121122.. autofunction:: wrap_text

Exposed parserArmin Ronacherbefore adoption1726e47

lines 123–128why, one step back
123
124Parsing125-------126127.. autoclass:: OptionParser128 :members:

Moved the test code into the APIArmin Ronacherbefore adoptionc265355

lines 129–139why, one step back
129
130Testing131-------132133.. currentmodule:: click.testing134135.. autoclass:: CliRunner136 :members:137138.. autoclass:: Result139 :members: