Skip to content
Myr

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

1 file+11 added−28 removed

modified:docs/quickstart.rst+11 added-28 removed
9 unmodified lines
10 pip install click1112Installing into a virtual environment is highly recommended. We suggest :ref:`virtualenv-heading`.1314Screencast and Examples14Examples15-----------------------1617There is a screencast available which shows the basic API of Click and18how to build simple applications with it. It also explores how to build19commands with subcommands.17Some 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.1821* `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.2824Examples of Click applications can be found in the documentation as well25as in the GitHub repository together with readme files:2627* ``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>`_4529Basic Concepts - Creating a Command30-----------------------------------3132Click is based on declaring commands through decorators. Internally, there
178 unmodified lines