Skip to content
Myr

Docs: minor fixes

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

authored by Julen Ruiz Aizpuru · committed by Julen Ruiz Aizpuru · parent 7d4bbfd · Browse files · 2 files+5 added−5 removed
This commit

State

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

Diff stats

2 files+5 added−5 removed

  • other:+5 added−5 removed

2 files+5 added−5 removed

modified:click/utils.py+3 added-3 removed
202 unmodified lines
203 possible. This is a very carefree function as in that it will try its204 best to not fail.205206 In addition to that if `colorama`_ is installed the echo function will207 also support clever handling of ansi codes. Essentially it will then207 also support clever handling of ANSI codes. Essentially it will then208 do the following:209210 - add transparent handling of ANSI color codes on Windows210 - add transparent handling of ANSI color codes on Windows.211 - hide ANSI codes automatically if the destination file is not a212 terminal.213214 .. _colorama: http://pypi.python.org/pypi/colorama215216 .. versionchanged:: 2.0217 Starting with version 2.0 of Click, the echo function will work217 Starting with version 2.0 of click, the echo function will work218 with colorama if it's installed.219220 :param message: the message to print221 :param file: the file to write to (defaults to ``stdout``)
128 unmodified lines
modified:docs/utils.rst+2 added-2 removed
112 unmodified lines
113114.. versionadded:: 2.0115116Very often you want to open a config file that belongs to your117application. However different operationg systems store these config117application. However different operating systems store these config118files by their policy in different places. Click provides a119:func:`get_app_dir` function which returns the most appropriate location120for per user config files for your application depending on the OS.120for per-user config files for your application depending on the OS.121122Example usage::123124 import os
60 unmodified lines