Skip to content
Myr

index.rst

This file

Path

docs/index.rst

143 lines · 2.7 KiB

Last changed by

Very short description of exit codes and how to access them (#3112)Rowlando13before adoption868b611

History of this file

Take it

The walk stopped after 200 commits: lines older than fb43272 point at it.

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 1–5why, one step back
1.. rst-class:: hide-header
23Welcome to Click4================5

svg logoDavid Lordbefore adoption2865034

line 6why, one step back
6.. image:: _static/click-name.svg

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 7why, one step back
7 :align: center

new logo (#2974)David Lordbefore adoptiond2e0fb5

line 8why, one step back
8 :height: 200px

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 9–59why, one step back
9
10Click is a Python package for creating beautiful command line interfaces11in a composable way with as little code as necessary. It's the "Command12Line Interface Creation Kit". It's highly configurable but comes with13sensible defaults out of the box.1415It aims to make the process of writing command line tools quick and fun16while also preventing any frustration caused by the inability to implement17an intended CLI API.1819Click in three points:2021- arbitrary nesting of commands22- automatic help page generation23- supports lazy loading of subcommands at runtime2425What does it look like? Here is an example of a simple Click program:2627.. click:example::2829 import click3031 @click.command()32 @click.option('--count', default=1, help='Number of greetings.')33 @click.option('--name', prompt='Your name',34 help='The person to greet.')35 def hello(count, name):36 """Simple program that greets NAME for a total of COUNT times."""37 for x in range(count):38 click.echo(f"Hello {name}!")3940 if __name__ == '__main__':41 hello()4243And what it looks like when run:4445.. click:run::4647 invoke(hello, ['--count=3'], prog_name='python hello.py', input='John\n')4849It automatically generates nicely formatted help pages:5051.. click:run::5253 invoke(hello, ['--help'], prog_name='python hello.py')5455You can get the library directly from PyPI::5657 pip install click5859Documentation

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 60why, one step back
60==============

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 61why, one step back
61

Make faqs section. Add the first question about windows shell expansion. (#2927)Rowlando13before adoption9ce34f2

lines 62–66why, one step back
62.. toctree::
63 :maxdepth: 26465 faqs66

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

line 67why, one step back
67Tutorials

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 68why, one step back
68------------

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 69why, one step back
69.. toctree::

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

line 70why, one step back
70 :maxdepth: 1

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 71–72why, one step back
71
72 quickstart

Merge stable into main (#2799)Rowlando13before adoptiond791537

line 73why, one step back
73 virtualenv

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 74–75why, one step back
74
75How to Guides

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 76why, one step back
76---------------

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 77–80why, one step back
77.. toctree::
78 :maxdepth: 17980 entry-points

Merge stable into main (#2799)Rowlando13before adoptiond791537

line 81why, one step back
81 setuptools

Add a doc for supporting 8.1.x|8.2.0 (#2929)David Lordbefore adoption2d610e3

line 82why, one step back
82 support-multiple-versions

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 83–84why, one step back
83
84Conceptual Guides

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 85why, one step back
85-------------------

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 86–89why, one step back
86.. toctree::
87 :maxdepth: 18889 why

Make distinct sections for advanced patterns and extending click. (#2925)Rowlando13before adoption2aecb2d

line 90why, one step back
90 click-concepts

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 91–92why, one step back
91
92General Reference

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 93why, one step back
93--------------------

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 94–97why, one step back
94
95.. toctree::96 :maxdepth: 197

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 98why, one step back
98 parameters

Rewrite first half of options docs (#2825)Rowlando13before adoption82089af

line 99why, one step back
99 parameter-types

Rewrite help page section. (#2821)Rowlando13before adoption8a47580

line 100why, one step back
100 options

Rewrite first half of options docs (#2825)Rowlando13before adoption82089af

lines 101–102why, one step back
101 option-decorators
102 arguments

Rewrite Commands and Groups docs. (#2838)Rowlando13before adoption0bf333e

line 103why, one step back
103 commands-and-groups

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 104–105why, one step back
104 commands
105 documentation

Rewrite help page section. (#2821)Rowlando13before adoption8a47580

line 106why, one step back
106 prompts

Merge `stable` into `main`; Release 8.2.0 (#2873)Rowlando13before adoptionb7c0ab4

line 107why, one step back
107 handling-files

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 108why, one step back
108 advanced

Make distinct sections for advanced patterns and extending click. (#2925)Rowlando13before adoption2aecb2d

lines 109–110why, one step back
109 complex
110 extending-click

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 111–114why, one step back
111 testing
112 utils113 shell-completion114 exceptions

Very short description of exit codes and how to access them (#3112)Rowlando13before adoption868b611

line 115why, one step back
115 command-line-reference

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 116–119why, one step back
116 unicode-support
117 wincmd118119API Reference

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 120why, one step back
120-------------------

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 121–126why, one step back
121
122.. toctree::123 :maxdepth: 2124125 api126

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

line 127why, one step back
127About Project

Align docs index header levels. (#2951)Rowlando13before adoption3a917b9

line 128why, one step back
128===============

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 129why, one step back
129

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

lines 130–137why, one step back
130* This documentation is structured according to `Diataxis <https://diataxis.fr/>`_
131132* `Version Policy <https://palletsprojects.com/versions>`_133134* `Contributing <https://palletsprojects.com/contributing/>`_135136* `Donate <https://palletsprojects.com/donate>`_137

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

line 138why, one step back
138.. toctree::

Organize docs along diatxis categories. (#2898)Rowlando13before adoptionb88c484

line 139why, one step back
139 :maxdepth: 1

Bump actions/cache from 3.0.5 to 3.0.8 (#2349)dependabot[bot]before adoptionfb43272

lines 140–143why, one step back
140
141 contrib142 license143 changes