Skip to content
Myr

Added changelog entry and docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 64d7fcf · Browse files · 3 files+9 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+9 added−0 removed

  • other:+9 added−0 removed

3 files+9 added−0 removed

modified:click/termui.py+2 added
208 unmodified lines
209 with progressbar(items) as bar:210 for item in bar:211 do_something_with(item)212213 .. versionadded:: 2.0214215 :param iterable: an iterable to iterate over. If not provided the length216 is required.217 :param length: the number of items to iterate over. By default the218 progressbar will attempt to ask the iterator about it's
33 unmodified lines
modified:docs/api.rst+4 added
40 unmodified lines
41.. autofunction:: prompt4243.. autofunction:: confirm4445.. autofunction:: progressbar4647.. autofunction:: format_filename4849.. autofunction:: get_terminal_size5051.. autofunction:: get_binary_stream5253.. autofunction:: get_text_stream5455.. autofunction:: get_app_dir5657Commands58--------5960.. autoclass:: BaseCommand
91 unmodified lines
modified:CHANGES+3 added
12 unmodified lines
13- added support for atomic writes to files by going through14 a temporary file.15- introduced :exc:`BadParameter` which can be used to easily perform16 custom validation with the same error messages as in the type system.17- added :func:`progressbar`; a function to show progress bars.18- added :func:`get_app_dir`; a function to calculate the home folder19 for configs.2021Version 1.122-----------23
11 unmodified lines