api.rst
This file
Path
docs/api.rst
167 lines · 2.1 KiB
Last changed by
Added click.pauseArmin Ronacherbefore adoptionc9eb780
History of this fileTake it
The walk stopped after 200 commits: lines older than dc25c8b point at it.
Added example for pagerArmin Ronacherbefore adoptiondc25c8b
lines 1–33why, one step back1API2===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_obj3132.. autofunction:: make_pass_decorator33Added lazy file openingArmin Ronacherbefore adoptionf270dd2
lines 34–35why, one step back34Utilities35---------Added example for pagerArmin Ronacherbefore adoptiondc25c8b
lines 36–44why, one step back3637.. autofunction:: echo3839.. autofunction:: echo_via_pager4041.. autofunction:: prompt4243.. autofunction:: confirm44Added changelog entry and docsArmin Ronacherbefore adoption12f50b4
lines 45–46why, one step back45.. autofunction:: progressbar46Added support for screen clearing.Armin Ronacherbefore adoption09ba1e9
lines 47–48why, one step back47.. autofunction:: clear48Added style and unstyle to docs.Armin Ronacherbefore adoption22241e4
lines 49–52why, one step back49.. autofunction:: style5051.. autofunction:: unstyle52Added sechoArmin Ronacherbefore adoption97f942c
lines 53–54why, one step back53.. autofunction:: secho54Added an edit function.Armin Ronacherbefore adoption721e527
lines 55–56why, one step back55.. autofunction:: edit56Added click.launchArmin Ronacherbefore adoptionba36392
lines 57–58why, one step back57.. autofunction:: launch58Added getchar()Armin Ronacherbefore adoption88c97ef
line 59why, one step back59.. autofunction:: getcharAdded filename format functionArmin Ronacherbefore adoption31043c3
line 60why, one step back60Added click.pauseArmin Ronacherbefore adoptionc9eb780
lines 61–62why, one step back61.. autofunction:: pause62Added example for pagerArmin Ronacherbefore adoptiondc25c8b
lines 63–64why, one step back63.. autofunction:: get_terminal_size64Improved stream support and added it to public API.Armin Ronacherbefore adoption002c38d
lines 65–67why, one step back65.. autofunction:: get_binary_stream6667.. autofunction:: get_text_streamAdded changelog entry and docsArmin Ronacherbefore adoption12f50b4
lines 68–69why, one step back6869.. autofunction:: get_app_dirAdded getchar()Armin Ronacherbefore adoption88c97ef
lines 70–71why, one step back7071.. autofunction:: format_filenameImproved stream support and added it to public API.Armin Ronacherbefore adoption002c38d
line 72why, one step back72Added example for pagerArmin Ronacherbefore adoptiondc25c8b
lines 73–75why, one step back73Commands74--------75Added a base command for dispatching to other parsers.Armin Ronacherbefore adoption955beb8
lines 76–78why, one step back76.. autoclass:: BaseCommand77 :members:78Added example for pagerArmin Ronacherbefore adoptiondc25c8b
lines 79–121why, one step back79.. autoclass:: Command80 :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:: File121Implemented the Path typeArmin Ronacherbefore adoption2e7c39c
lines 122–123why, one step back122.. autoclass:: Path123Added example for pagerArmin Ronacherbefore adoptiondc25c8b
lines 124–125why, one step back124.. autoclass:: Choice125Added missing type to docsArmin Ronacherbefore adoption065ce06
lines 126–127why, one step back126.. autoclass:: IntRange127Added example for pagerArmin Ronacherbefore adoptiondc25c8b
line 128why, one step back128.. autoclass:: ParamTypeAdded multi envvar docsArmin Ronacherbefore adoption61eb5e2
line 129why, one step back129 :members:Added example for pagerArmin Ronacherbefore adoptiondc25c8b
lines 130–133why, one step back130131Exceptions132----------133Added lazy file openingArmin Ronacherbefore adoptionf270dd2
lines 134–135why, one step back134.. autoexception:: ClickException135Added example for pagerArmin Ronacherbefore adoptiondc25c8b
lines 136–138why, one step back136.. autoexception:: Abort137138.. autoexception:: UsageErrorAdded lazy file openingArmin Ronacherbefore adoptionf270dd2
line 139why, one step back139Added support for BadParameter exceptions.Armin Ronacherbefore adoption1407ecb
lines 140–141why, one step back140.. autoexception:: BadParameter141Added lazy file openingArmin Ronacherbefore adoptionf270dd2
line 142why, one step back142.. autoexception:: FileErrorAdded example for pagerArmin Ronacherbefore adoptiondc25c8b
lines 143–150why, one step back143144Formatting145----------146147.. autoclass:: HelpFormatter148 :members:149150.. autofunction:: wrap_textExposed parserArmin Ronacherbefore adoption1726e47
lines 151–156why, one step back151152Parsing153-------154155.. autoclass:: OptionParser156 :members:Moved the test code into the APIArmin Ronacherbefore adoptionc265355
lines 157–167why, one step back157158Testing159-------160161.. currentmodule:: click.testing162163.. autoclass:: CliRunner164 :members:165166.. autoclass:: Result167 :members: