Skip to content
Myr

api.rst

This file

Path

docs/api.rst

169 lines · 2.1 KiB

Last changed by

Added open_file to api docs.Armin Ronacherbefore adoption42d99d6

History of this file

Take it

The walk stopped after 200 commits: lines older than 469ba25 point at it.

Implemented atomic file opening support.Armin Ronacherbefore adoption469ba25

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

Implemented atomic file opening support.Armin Ronacherbefore adoption469ba25

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

Implemented atomic file opening support.Armin Ronacherbefore adoption469ba25

line 60why, one step back
60

Added click.pauseArmin Ronacherbefore adoptionc9eb780

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

Implemented atomic file opening support.Armin Ronacherbefore adoption469ba25

lines 63–67why, one step back
63.. autofunction:: get_terminal_size
6465.. autofunction:: get_binary_stream6667.. autofunction:: get_text_stream

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

line 68why, one step back
68

Added open_file to api docs.Armin Ronacherbefore adoption42d99d6

lines 69–70why, one step back
69.. autofunction:: open_file
70

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

line 71why, one step back
71.. autofunction:: get_app_dir

Added getchar()Armin Ronacherbefore adoption88c97ef

lines 72–73why, one step back
72
73.. autofunction:: format_filename

Implemented atomic file opening support.Armin Ronacherbefore adoption469ba25

lines 74–141why, one step back
74
75Commands76--------7778.. autoclass:: BaseCommand79 :members:8081.. autoclass:: Command82 :members:8384.. autoclass:: MultiCommand85 :members:8687.. autoclass:: Group88 :members:8990.. autoclass:: CommandCollection91 :members:9293Parameters94----------9596.. autoclass:: Parameter97 :members:9899.. autoclass:: Option100101.. autoclass:: Argument102103Context104-------105106.. autoclass:: Context107 :members:108109Types110-----111112.. autodata:: STRING113114.. autodata:: INT115116.. autodata:: FLOAT117118.. autodata:: BOOL119120.. autodata:: UUID121122.. autoclass:: File123124.. autoclass:: Path125126.. autoclass:: Choice127128.. autoclass:: IntRange129130.. autoclass:: ParamType131 :members:132133Exceptions134----------135136.. autoexception:: ClickException137138.. autoexception:: Abort139140.. autoexception:: UsageError141

Added support for BadParameter exceptions.Armin Ronacherbefore adoption1407ecb

lines 142–143why, one step back
142.. autoexception:: BadParameter
143

Implemented atomic file opening support.Armin Ronacherbefore adoption469ba25

lines 144–169why, one step back
144.. autoexception:: FileError
145146Formatting147----------148149.. autoclass:: HelpFormatter150 :members:151152.. autofunction:: wrap_text153154Parsing155-------156157.. autoclass:: OptionParser158 :members:159160Testing161-------162163.. currentmodule:: click.testing164165.. autoclass:: CliRunner166 :members:167168.. autoclass:: Result169 :members: