Make examples docs nicer. (#2580)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Rowlando13 · committed by GitHub · parents 1a696c0, 483e57f · Browse files · 1 file·+11 added−28 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+11 added−28 removed
- other:+11 added−28 removed
Provenance
- Commit
3ecc65b- Tree
a944dad- Author
Rowlando13 <67291205+Rowlando13@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent 1
1a696c0- Parent 2
483e57f
1 file changed+11 added−28 removed
modified:docs/quickstart.rst+11 added-28 removed
9 unmodified lines10 pip install click11 12 Installing into a virtual environment is highly recommended. We suggest :ref:`virtualenv-heading`.13 14-Screencast and Examples14+Examples15 -----------------------16 17-There is a screencast available which shows the basic API of Click and18-how to build simple applications with it. It also explores how to build19-commands with subcommands.17+Some standalone examples of Click applications are packaged with Click. They are available in the `examples folder <https://github.com/pallets/click/tree/main/examples>`_ of the repo.18 21-* `Building Command Line Applications with Click22- <https://www.youtube.com/watch?v=kNke39OZ2k0>`_19+* `inout <https://github.com/pallets/click/tree/main/examples/inout>`_ : A very simple example of an application that can read from files and write to files and also accept input from stdin or write to stdout.20+* `validation <https://github.com/pallets/click/tree/main/examples/validation>`_ : A simple example of an application that performs custom validation of parameters in different ways.21+* `naval <https://github.com/pallets/click/tree/main/examples/naval>`_ : Port of the `docopt <http://docopt.org/>`_ naval example.22+* `colors <https://github.com/pallets/click/tree/main/examples/colors>`_ : A simple example that colorizes text. Uses colorama on Windows.23+* `aliases <https://github.com/pallets/click/tree/main/examples/aliases>`_ : An advanced example that implements :ref:`aliases`.24+* `imagepipe <https://github.com/pallets/click/tree/main/examples/imagepipe>`_ : A complex example that implements some :ref:`multi-command-chaining` . It chains together image processing instructions. Requires pillow.25+* `repo <https://github.com/pallets/click/tree/main/examples/repo>`_ : An advanced example that implements a Git-/Mercurial-like command line interface.26+* `complex <https://github.com/pallets/click/tree/main/examples/complex>`_ : A very advanced example that implements loading subcommands dynamically from a plugin folder.27+* `termui <https://github.com/pallets/click/tree/main/examples/termui>`_ : A simple example that showcases terminal UI helpers provided by click.28 24-Examples of Click applications can be found in the documentation as well25-as in the GitHub repository together with readme files:26-27-* ``inout``: `File input and output28- <https://github.com/pallets/click/tree/main/examples/inout>`_29-* ``naval``: `Port of docopt naval example30- <https://github.com/pallets/click/tree/main/examples/naval>`_31-* ``aliases``: `Command alias example32- <https://github.com/pallets/click/tree/main/examples/aliases>`_33-* ``repo``: `Git-/Mercurial-like command line interface34- <https://github.com/pallets/click/tree/main/examples/repo>`_35-* ``complex``: `Complex example with plugin loading36- <https://github.com/pallets/click/tree/main/examples/complex>`_37-* ``validation``: `Custom parameter validation example38- <https://github.com/pallets/click/tree/main/examples/validation>`_39-* ``colors``: `Color support demo40- <https://github.com/pallets/click/tree/main/examples/colors>`_41-* ``termui``: `Terminal UI functions demo42- <https://github.com/pallets/click/tree/main/examples/termui>`_43-* ``imagepipe``: `Multi command chaining demo44- <https://github.com/pallets/click/tree/main/examples/imagepipe>`_45-29 Basic Concepts - Creating a Command30 -----------------------------------31 32 Click is based on declaring commands through decorators. Internally, there178 unmodified lines