Skip to content
Myr

api.rst

This file

Path

docs/api.rst

167 lines · 2.1 KiB

Last changed by

Merge pull request #113 from iKevinY/doc-fixesArmin Ronacherbefore adoptione0ea94a

History of this file

Take it

The walk stopped after 200 commits: lines older than 533cf7c point at it.

This is 0.5.1Armin Ronacherbefore adoption533cf7c

lines 1–5why, one step back
1API
2===34.. module:: click5

Merge pull request #113 from iKevinY/doc-fixesArmin Ronacherbefore adoptione0ea94a

line 6why, one step back
6This part of the documentation lists the full API reference of all public

This is 0.5.1Armin Ronacherbefore adoption533cf7c

lines 7–44why, one step back
7classes 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_obj3132.. autofunction:: make_pass_decorator3334Utilities35---------3637.. autofunction:: echo3839.. autofunction:: echo_via_pager4041.. autofunction:: prompt4243.. autofunction:: confirm44

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

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

Added support for screen clearing.Armin Ronacherbefore adoption09ba1e9

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

Added style and unstyle to docs.Armin Ronacherbefore adoption22241e4

lines 49–52why, one step back
49.. autofunction:: style
5051.. autofunction:: unstyle52

Added sechoArmin Ronacherbefore adoption97f942c

lines 53–54why, one step back
53.. autofunction:: secho
54

Added an edit function.Armin Ronacherbefore adoption721e527

lines 55–56why, one step back
55.. autofunction:: edit
56

Added click.launchArmin Ronacherbefore adoptionba36392

lines 57–58why, one step back
57.. autofunction:: launch
58

Added getchar()Armin Ronacherbefore adoption88c97ef

line 59why, one step back
59.. autofunction:: getchar

Added filename format functionArmin Ronacherbefore adoption31043c3

line 60why, one step back
60

Added click.pauseArmin Ronacherbefore adoptionc9eb780

lines 61–62why, one step back
61.. autofunction:: pause
62

This is 0.5.1Armin Ronacherbefore adoption533cf7c

lines 63–64why, one step back
63.. autofunction:: get_terminal_size
64

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

lines 65–67why, one step back
65.. autofunction:: get_binary_stream
6667.. autofunction:: get_text_stream

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

lines 68–69why, one step back
68
69.. autofunction:: get_app_dir

Added getchar()Armin Ronacherbefore adoption88c97ef

lines 70–71why, one step back
70
71.. autofunction:: format_filename

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

line 72why, one step back
72

This is 0.5.1Armin Ronacherbefore adoption533cf7c

lines 73–75why, one step back
73Commands
74--------75

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

lines 76–78why, one step back
76.. autoclass:: BaseCommand
77 :members:78

This is 0.5.1Armin Ronacherbefore adoption533cf7c

lines 79–121why, one step back
79.. autoclass:: Command
80 :members:8182.. autoclass:: MultiCommand83 :members:8485.. autoclass:: Group86 :members:8788.. autoclass:: CommandCollection89 :members:9091Parameters92----------9394.. autoclass:: Parameter95 :members:9697.. autoclass:: Option9899.. autoclass:: Argument100101Context102-------103104.. autoclass:: Context105 :members:106107Types108-----109110.. autodata:: STRING111112.. autodata:: INT113114.. autodata:: FLOAT115116.. autodata:: BOOL117118.. autodata:: UUID119120.. autoclass:: File121

Implemented the Path typeArmin Ronacherbefore adoption2e7c39c

lines 122–123why, one step back
122.. autoclass:: Path
123

This is 0.5.1Armin Ronacherbefore adoption533cf7c

lines 124–128why, one step back
124.. autoclass:: Choice
125126.. autoclass:: IntRange127128.. autoclass:: ParamType

Added multi envvar docsArmin Ronacherbefore adoption61eb5e2

line 129why, one step back
129 :members:

This is 0.5.1Armin Ronacherbefore adoption533cf7c

lines 130–139why, one step back
130
131Exceptions132----------133134.. autoexception:: ClickException135136.. autoexception:: Abort137138.. autoexception:: UsageError139

Added support for BadParameter exceptions.Armin Ronacherbefore adoption1407ecb

lines 140–141why, one step back
140.. autoexception:: BadParameter
141

This is 0.5.1Armin Ronacherbefore adoption533cf7c

lines 142–156why, one step back
142.. autoexception:: FileError
143144Formatting145----------146147.. autoclass:: HelpFormatter148 :members:149150.. autofunction:: wrap_text151152Parsing153-------154155.. autoclass:: OptionParser156 :members:

Moved the test code into the APIArmin Ronacherbefore adoptionc265355

lines 157–167why, one step back
157
158Testing159-------160161.. currentmodule:: click.testing162163.. autoclass:: CliRunner164 :members:165166.. autoclass:: Result167 :members: