Merge remote-tracking branch 'origin/8.0.x'
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parents 93551dd, f918a71 · Browse files · 5 files·+15 added−15 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+15 added−15 removed
- other:+15 added−15 removed
Provenance
- Commit
8a04bb0- Tree
484c5f4- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
93551dd- Parent 2
f918a71
5 files changed+15 added−15 removed
modified:.github/workflows/tests.yaml+2 added-2 removed
123455678910111213131415161743 unmodified linesname: Testson: push: branches: - master - main - '*.x' paths-ignore: - 'docs/**' - '*.md' - '*.rst' pull_request: branches: - master - main - '*.x' paths-ignore: - 'docs/**' - '*.md'43 unmodified linesmodified:docs/advanced.rst+1 added-1 removed
11 unmodified lines12 Command Aliases13 ---------------14 15 Many tools support aliases for commands (see `Command alias example16-<https://github.com/pallets/click/tree/master/examples/aliases>`_).16+<https://github.com/pallets/click/tree/main/examples/aliases>`_).17 For instance, you can configure ``git`` to accept ``git ci`` as alias for18 ``git commit``. Other tools also support auto-discovery for aliases by19 automatically shortening them.20 464 unmodified linesmodified:docs/commands.rst+1 added-1 removed
420 unmodified lines421 :func:`open_file`.422 423 For a more complex example that also improves upon handling of the424 pipelines have a look at the `imagepipe multi command chaining demo425-<https://github.com/pallets/click/tree/master/examples/imagepipe>`__ in425+<https://github.com/pallets/click/tree/main/examples/imagepipe>`__ in426 the Click repository. It implements a pipeline based image editing tool427 that has a nice internal structure for the pipelines.428 429 142 unmodified linesmodified:docs/quickstart.rst+9 added-9 removed
95 unmodified lines96 Examples of Click applications can be found in the documentation as well97 as in the GitHub repository together with readme files:98 99 * ``inout``: `File input and output100- <https://github.com/pallets/click/tree/master/examples/inout>`_100+ <https://github.com/pallets/click/tree/main/examples/inout>`_101 * ``naval``: `Port of docopt naval example102- <https://github.com/pallets/click/tree/master/examples/naval>`_102+ <https://github.com/pallets/click/tree/main/examples/naval>`_103 * ``aliases``: `Command alias example104- <https://github.com/pallets/click/tree/master/examples/aliases>`_104+ <https://github.com/pallets/click/tree/main/examples/aliases>`_105 * ``repo``: `Git-/Mercurial-like command line interface106- <https://github.com/pallets/click/tree/master/examples/repo>`_106+ <https://github.com/pallets/click/tree/main/examples/repo>`_107 * ``complex``: `Complex example with plugin loading108- <https://github.com/pallets/click/tree/master/examples/complex>`_108+ <https://github.com/pallets/click/tree/main/examples/complex>`_109 * ``validation``: `Custom parameter validation example110- <https://github.com/pallets/click/tree/master/examples/validation>`_110+ <https://github.com/pallets/click/tree/main/examples/validation>`_111 * ``colors``: `Color support demo112- <https://github.com/pallets/click/tree/master/examples/colors>`_112+ <https://github.com/pallets/click/tree/main/examples/colors>`_113 * ``termui``: `Terminal UI functions demo114- <https://github.com/pallets/click/tree/master/examples/termui>`_114+ <https://github.com/pallets/click/tree/main/examples/termui>`_115 * ``imagepipe``: `Multi command chaining demo116- <https://github.com/pallets/click/tree/master/examples/imagepipe>`_116+ <https://github.com/pallets/click/tree/main/examples/imagepipe>`_117 118 Basic Concepts - Creating a Command119 -----------------------------------120 179 unmodified linesmodified:CONTRIBUTING.rst+2 added-2 removed
139 unmodified lines140 $ git fetch origin141 $ git checkout -b your-branch-name origin/7.x142 143 If you're submitting a feature addition or change, branch off of the144- "master" branch.144+ "main" branch.145 146 .. code-block:: text147 148 $ git fetch origin149- $ git checkout -b your-branch-name origin/master149+ $ git checkout -b your-branch-name origin/main150 151 - Using your favorite editor, make your changes,152 `committing as you go`_.153 - Include tests that cover any code changes you make. Make sure the63 unmodified lines