Standardized capitalization of Unix
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kevin Yap · committed by Kevin Yap · parent 9b2648a · Browse files · 5 files·+6 added−6 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+6 added−6 removed
- other:+6 added−6 removed
Provenance
- Commit
b131df8- Tree
888cb71- Author
Kevin Yap <me@kevinyap.ca>- Committer
Kevin Yap <me@kevinyap.ca>- Parent
9b2648a
5 files changed+6 added−6 removed
modified:click/types.py+1 added-1 removed
26 unmodified lines27 #: if a list of this type is expected and the value is pulled from a28 #: string environment variable, this is what splits it up. `None`29 #: means any whitespace. For all parameters the general rule is that30 #: whitespace splits them up. The exception are paths and files which31- #: are split by ``os.path.pathsep`` by default (":" on unix and ";" on31+ #: are split by ``os.path.pathsep`` by default (":" on Unix and ";" on32 #: Windows).33 envvar_list_splitter = None34 35 def __call__(self, value, param=None, ctx=None):396 unmodified linesmodified:docs/options.rst+1 added-1 removed
462 unmodified lines463 464 The default implementation for all types is to split on whitespace. The465 exceptions to this rule are the :class:`File` and :class:`Path` types466 which both split according to the operating system's path splitting rules.467-On UNIX systems like Linux and OS X, the splitting happens for those on467+On Unix systems like Linux and OS X, the splitting happens for those on468 every colon (``:``), and for Windows, on every semicolon (``;``).469 470 Example usage:471 137 unmodified linesmodified:docs/setuptools.rst+2 added-2 removed
2 unmodified lines3 Usage with Setuptools4 =====================5 6 When writing command line utilities, it's recommended to write them as7-modules that are distributed with setuptools instead of using UNIX7+modules that are distributed with setuptools instead of using Unix8 shebangs. There are many reasons for this.9 10 The first one is that setuptools automatically generates executable11 wrappers for Windows so your command line utilities work on Windows too.12 13-The second reason is that setuptools scripts work with virtualenv on UNIX13+The second reason is that setuptools scripts work with virtualenv on Unix14 without the virtualenv having to be activated. This is a very useful15 concept which allows you to bundle your scripts with all requirements into16 a virtualenv.17 64 unmodified linesmodified:docs/why.rst+1 added-1 removed
6 unmodified lines7 This question is easy to answer: because there is not a single command8 line utility for Python out there which ticks the following boxes:9 10 * is lazily composable without restrictions11-* fully follows the UNIX command line conventions11+* fully follows the Unix command line conventions12 * supports loading values from environment variables out of the box13 * supports for prompting of custom values14 * is fully nestable and composable15 * works the same in Python 2 and 3137 unmodified linesmodified:examples/inout/inout.py+1 added-1 removed
3 unmodified lines4 @click.command()5 @click.argument('input', type=click.File('rb'), nargs=-1)6 @click.argument('output', type=click.File('wb'))7 def cli(input, output):8- """This script works similar to the unix `cat` command but it writes8+ """This script works similar to the Unix `cat` command but it writes9 into a specific file (which could be the standard output as denoted by10 the ``-`` sign).11 12 \b18 unmodified lines