Skip to content
Myr

api.rst

This file

Path

docs/api.rst

145 lines · 1.8 KiB

Last changed by

Added filename format functionArmin Ronacherbefore adoption31043c3

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–44
41.. autofunction:: prompt
4243.. autofunction:: confirm44

Added filename format functionArmin Ronacherbefore adoption31043c3

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

Initial commitArmin Ronacherbefore adoption4101de3

lines 47–48
47.. autofunction:: get_terminal_size
48

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

lines 49–52why, one step back
49.. autofunction:: get_binary_stream
5051.. autofunction:: get_text_stream52

Initial commitArmin Ronacherbefore adoption4101de3

lines 53–55
53Commands
54--------55

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

lines 56–58why, one step back
56.. autoclass:: BaseCommand
57 :members:58

Initial commitArmin Ronacherbefore adoption4101de3

lines 59–67
59.. autoclass:: Command
60 :members:6162.. autoclass:: MultiCommand63 :members:6465.. autoclass:: Group66 :members:67

Implemented basic command collectionsArmin Ronacherbefore adoption055a8e6

lines 68–70why, one step back
68.. autoclass:: CommandCollection
69 :members:70

Initial commitArmin Ronacherbefore adoption4101de3

lines 71–97
71Parameters
72----------7374.. autoclass:: Parameter75 :members:7677.. autoclass:: Option7879.. autoclass:: Argument8081Context82-------8384.. autoclass:: Context85 :members:8687Types88-----8990.. autodata:: STRING9192.. autodata:: INT9394.. autodata:: FLOAT9596.. autodata:: BOOL97

Added UUID type supportArmin Ronacherbefore adoption4ed961d

lines 98–99why, one step back
98.. autodata:: UUID
99

Initial commitArmin Ronacherbefore adoption4101de3

lines 100–101
100.. autoclass:: File
101

Implemented the Path typeArmin Ronacherbefore adoption2e7c39c

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

Added choice supportArmin Ronacherbefore adoption9eacc90

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

Added missing type to docsArmin Ronacherbefore adoption065ce06

lines 106–107why, one step back
106.. autoclass:: IntRange
107

Initial commitArmin Ronacherbefore adoption4101de3

line 108
108.. autoclass:: ParamType

Added multi envvar docsArmin Ronacherbefore adoption61eb5e2

line 109why, one step back
109 :members:

Initial commitArmin Ronacherbefore adoption4101de3

lines 110–113
110
111Exceptions112----------113

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 114–115why, one step back
114.. autoexception:: ClickException
115

Initial commitArmin Ronacherbefore adoption4101de3

lines 116–118
116.. autoexception:: Abort
117118.. autoexception:: UsageError

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 119–120why, one step back
119
120.. autoexception:: FileError

Exposed formattingArmin Ronacherbefore adoption97b505c

lines 121–128why, one step back
121
122Formatting123----------124125.. autoclass:: HelpFormatter126 :members:127128.. autofunction:: wrap_text

Exposed parserArmin Ronacherbefore adoption1726e47

lines 129–134why, one step back
129
130Parsing131-------132133.. autoclass:: OptionParser134 :members:

Moved the test code into the APIArmin Ronacherbefore adoptionc265355

lines 135–145why, one step back
135
136Testing137-------138139.. currentmodule:: click.testing140141.. autoclass:: CliRunner142 :members:143144.. autoclass:: Result145 :members: