Skip to content
Myr

api.rst

This file

Path

docs/api.rst

151 lines · 1.9 KiB

Last changed by

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

History of this file

Take it

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

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

lines 1–31why, 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_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---------

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

line 36why, one step back
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

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

lines 41–44why, one step back
41.. autofunction:: prompt
4243.. autofunction:: confirm44

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

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

Added filename format functionArmin Ronacherbefore adoption31043c3

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

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

lines 49–50why, one step back
49.. autofunction:: get_terminal_size
50

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

lines 51–53why, one step back
51.. autofunction:: get_binary_stream
5253.. autofunction:: get_text_stream

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

lines 54–55why, one step back
54
55.. autofunction:: get_app_dir

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

line 56why, one step back
56

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

lines 57–59why, one step back
57Commands
58--------59

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

lines 60–62why, one step back
60.. autoclass:: BaseCommand
61 :members:62

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

lines 63–71why, one step back
63.. autoclass:: Command
64 :members:6566.. autoclass:: MultiCommand67 :members:6869.. autoclass:: Group70 :members:71

Implemented basic command collectionsArmin Ronacherbefore adoption055a8e6

lines 72–74why, one step back
72.. autoclass:: CommandCollection
73 :members:74

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

lines 75–101why, one step back
75Parameters
76----------7778.. autoclass:: Parameter79 :members:8081.. autoclass:: Option8283.. autoclass:: Argument8485Context86-------8788.. autoclass:: Context89 :members:9091Types92-----9394.. autodata:: STRING9596.. autodata:: INT9798.. autodata:: FLOAT99100.. autodata:: BOOL101

Added UUID type supportArmin Ronacherbefore adoption4ed961d

lines 102–103why, one step back
102.. autodata:: UUID
103

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

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

Implemented the Path typeArmin Ronacherbefore adoption2e7c39c

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

Added choice supportArmin Ronacherbefore adoption9eacc90

lines 108–109why, one step back
108.. autoclass:: Choice
109

Added missing type to docsArmin Ronacherbefore adoption065ce06

lines 110–111why, one step back
110.. autoclass:: IntRange
111

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

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

Added multi envvar docsArmin Ronacherbefore adoption61eb5e2

line 113why, one step back
113 :members:

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

lines 114–117why, one step back
114
115Exceptions116----------117

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

lines 118–119why, one step back
118.. autoexception:: ClickException
119

Added docs for building complex click applicationsArmin Ronacherbefore adoption23d3f68

lines 120–122why, one step back
120.. autoexception:: Abort
121122.. autoexception:: UsageError

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

line 123why, one step back
123

Added support for BadParameter exceptions.Armin Ronacherbefore adoption1407ecb

lines 124–125why, one step back
124.. autoexception:: BadParameter
125

Added lazy file openingArmin Ronacherbefore adoptionf270dd2

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

Exposed formattingArmin Ronacherbefore adoption97b505c

lines 127–134why, one step back
127
128Formatting129----------130131.. autoclass:: HelpFormatter132 :members:133134.. autofunction:: wrap_text

Exposed parserArmin Ronacherbefore adoption1726e47

lines 135–140why, one step back
135
136Parsing137-------138139.. autoclass:: OptionParser140 :members:

Moved the test code into the APIArmin Ronacherbefore adoptionc265355

lines 141–151why, one step back
141
142Testing143-------144145.. currentmodule:: click.testing146147.. autoclass:: CliRunner148 :members:149150.. autoclass:: Result151 :members: