Skip to content
Myr

README.md

This file

Path

README.md

327 lines ยท 14.9 KiB ยท Markdown

Last changed by

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

History of this file

Take it

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

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 1โ€“7why, one step back
1<p align="center">
2 <a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer"></a>3</p>4<p align="center">5 <em>Typer, build great CLIs. Easy to code. Based on Python type hints.</em>6</p>7<p align="center">

๐Ÿ’„ Update badges and remove Travis (#145)Sebastiรกn Ramรญrezbefore adoptionf67a47e

lines 8โ€“9why, one step back
8<a href="https://github.com/tiangolo/typer/actions?query=workflow%3ATest" target="_blank">
9 <img src="https://github.com/tiangolo/typer/workflows/Test/badge.svg" alt="Test">

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 10why, one step back
10</a>

๐Ÿ’„ Update badges and remove Travis (#145)Sebastiรกn Ramรญrezbefore adoptionf67a47e

lines 11โ€“13why, one step back
11<a href="https://github.com/tiangolo/typer/actions?query=workflow%3APublish" target="_blank">
12 <img src="https://github.com/tiangolo/typer/workflows/Publish/badge.svg" alt="Publish">13</a>

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 14why, one step back
14<a href="https://codecov.io/gh/tiangolo/typer" target="_blank">

๐Ÿ’„ Update badges and remove Travis (#145)Sebastiรกn Ramรญrezbefore adoptionf67a47e

line 15why, one step back
15 <img src="https://img.shields.io/codecov/c/github/tiangolo/typer?color=%2334D058" alt="Coverage">

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 16โ€“17why, one step back
16</a>
17<a href="https://pypi.org/project/typer" target="_blank">

๐Ÿ’„ Update badges and remove Travis (#145)Sebastiรกn Ramรญrezbefore adoptionf67a47e

line 18why, one step back
18 <img src="https://img.shields.io/pypi/v/typer?color=%2334D058&label=pypi%20package" alt="Package version">

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 19โ€“29why, one step back
19</a>
20</p>2122---2324**Documentation**: <a href="https://typer.tiangolo.com" target="_blank">https://typer.tiangolo.com</a>2526**Source Code**: <a href="https://github.com/tiangolo/typer" target="_blank">https://github.com/tiangolo/typer</a>2728---29

โœ Fix typos in main page/README (#103)Evan E. Bairdbefore adoption2bc3b9a

line 30why, one step back
30Typer is a library for building <abbr title="command line interface, programs executed from a terminal">CLI</abbr> applications that users will **love using** and developers will **love creating**. Based on Python 3.6+ type hints.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 31โ€“34why, one step back
31
32The key features are:3334* **Intuitive to write**: Great editor support. <abbr title="also known as auto-complete, autocompletion, IntelliSense">Completion</abbr> everywhere. Less time debugging. Designed to be easy to use and learn. Less time reading docs.

:sparkles: Re-implement completion, fixes, add PowerShell support (#66)Sebastiรกn Ramรญrezbefore adoption1d3337a

line 35why, one step back
35* **Easy to use**: It's easy to use for the final users. Automatic help, and automatic completion for all shells.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 36โ€“37why, one step back
36* **Short**: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.
37* **Start simple**: The simplest example adds only 2 lines of code to your app: **1 import, 1 function call**.

:sparkles: Docs for Typer CLI (#64)Sebastiรกn Ramรญrezbefore adoption96731c4

line 38why, one step back
38* **Grow large**: Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 39why, one step back
39

:sparkles: Add docs for testing, password, version, context. Extra tests, include callback and autocompletion PR (#68)Sebastiรกn Ramรญrezbefore adoption5a6379f

lines 40โ€“47why, one step back
40## FastAPI of CLIs
4142<a href="https://fastapi.tiangolo.com" target="_blank"><img src="https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" style="width: 20%;"></a>4344**Typer** is <a href="https://fastapi.tiangolo.com" class="external-link" target="_blank">FastAPI</a>'s little sibling.4546And it's intended to be the FastAPI of CLIs.47

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 48โ€“51why, one step back
48## Requirements
4950Python 3.6+51

:sparkles: Add docs for testing, password, version, context. Extra tests, include callback and autocompletion PR (#68)Sebastiรกn Ramรญrezbefore adoption5a6379f

line 52why, one step back
52**Typer** stands on the shoulders of a giant. Its only internal dependency is <a href="https://click.palletsprojects.com/" class="external-link" target="_blank">Click</a>.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 53โ€“58why, one step back
53
54## Installation5556<div class="termy">5758```console

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 59why, one step back
59$ pip install "typer[all]"

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 60โ€“65why, one step back
60---> 100%
61Successfully installed typer62```6364</div>65

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 66โ€“67why, one step back
66**Note**: that will include <a href="https://rich.readthedocs.io/" class="external-link" target="_blank">Rich</a>. Rich is the recommended library to *display* information on the terminal, it is optional, but when installed, it's deeply integrated into **Typer** to display beautiful output.
67

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 68โ€“78why, one step back
68## Example
6970### The absolute minimum7172* Create a file `main.py` with:7374```Python75import typer767778def main(name: str):

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 79why, one step back
79 print(f"Hello {name}")

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 80โ€“96why, one step back
80
8182if __name__ == "__main__":83 typer.run(main)84```8586### Run it8788Run your application:8990<div class="termy">9192```console93// Run your application94$ python main.py9596// You get a nice error, you are missing NAME

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 97โ€“101why, one step back
97<font color="#F4BF75">Usage: </font>main.py [OPTIONS] NAME
98<font color="#A5A5A1">Try </font><font color="#44919F">&apos;main.py </font><font color="#44919F"><b>--help</b></font><font color="#44919F">&apos;</font><font color="#A5A5A1"> for help.</font>99<font color="#F92672">โ•ญโ”€ Error โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ</font>100<font color="#F92672">โ”‚</font> Missing argument &apos;NAME&apos;. <font color="#F92672">โ”‚</font>101<font color="#F92672">โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ</font>

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 102โ€“106why, one step back
102
103104// You get a --help for free105$ python main.py --help106

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 107โ€“123why, one step back
107<b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py [OPTIONS] NAME </b>
108<b> </b>109<font color="#A5A5A1">โ•ญโ”€ Arguments โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ</font>110<font color="#A5A5A1">โ”‚ </font><font color="#F92672">*</font> name <font color="#F4BF75"><b>TEXT</b></font> [default: None] <font color="#A6194C">[required]</font> โ”‚111<font color="#A5A5A1">โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ</font>112<font color="#A5A5A1">โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ</font>113<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>--install-completion</b></font> Install completion โ”‚114<font color="#A5A5A1">โ”‚ for the current โ”‚</font>115<font color="#A5A5A1">โ”‚ shell. โ”‚</font>116<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>--show-completion</b></font> Show completion for โ”‚117<font color="#A5A5A1">โ”‚ the current shell, โ”‚</font>118<font color="#A5A5A1">โ”‚ to copy it or โ”‚</font>119<font color="#A5A5A1">โ”‚ customize the โ”‚</font>120<font color="#A5A5A1">โ”‚ installation. โ”‚</font>121<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>--help</b></font> Show this message โ”‚122<font color="#A5A5A1">โ”‚ and exit. โ”‚</font>123<font color="#A5A5A1">โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ</font>

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 124why, one step back
124

โœ Fix typos in main page/README (#103)Evan E. Bairdbefore adoption2bc3b9a

line 125why, one step back
125// When you create a package you get โœจ auto-completion โœจ for free, installed with --install-completion

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 126โ€“136why, one step back
126
127// Now pass the NAME argument128$ python main.py Camila129130Hello Camila131132// It works! ๐ŸŽ‰133```134135</div>136

โœ Fix typos in main page/README (#103)Evan E. Bairdbefore adoption2bc3b9a

line 137why, one step back
137**Note**: auto-completion works when you create a Python package and run it with `--install-completion` or when you use <a href="https://typer.tiangolo.com/typer-cli/" class="internal-link" target="_blank">Typer CLI</a>.

:sparkles: Docs for Typer CLI (#64)Sebastiรกn Ramรญrezbefore adoption96731c4

line 138why, one step back
138

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 139โ€“158why, one step back
139## Example upgrade
140141This was the simplest example possible.142143Now let's see one a bit more complex.144145### An example with two subcommands146147Modify the file `main.py`.148149Create a `typer.Typer()` app, and create two subcommands with their parameters.150151```Python hl_lines="3 6 11 20"152import typer153154app = typer.Typer()155156157@app.command()158def hello(name: str):

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 159why, one step back
159 print(f"Hello {name}")

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 160โ€“164why, one step back
160
161162@app.command()163def goodbye(name: str, formal: bool = False):164 if formal:

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 165why, one step back
165 print(f"Goodbye Ms. {name}. Have a good day.")

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 166why, one step back
166 else:

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 167why, one step back
167 print(f"Bye {name}!")

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 168โ€“182why, one step back
168
169170if __name__ == "__main__":171 app()172```173174And that will:175176* Explicitly create a `typer.Typer` app.177 * The previous `typer.run` actually creates one implicitly for you.178* Add two subcommands with `@app.command()`.179* Execute the `app()` itself, as if it was a function (instead of `typer.run`).180181### Run the upgraded example182

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 183โ€“184why, one step back
183Check the new help:
184

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 185โ€“189why, one step back
185<div class="termy">
186187```console188$ python main.py --help189

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 190โ€“207why, one step back
190<b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py [OPTIONS] COMMAND [ARGS]... </b>
191<b> </b>192<font color="#A5A5A1">โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ</font>193<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>--install-completion</b></font> Install completion โ”‚194<font color="#A5A5A1">โ”‚ for the current โ”‚</font>195<font color="#A5A5A1">โ”‚ shell. โ”‚</font>196<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>--show-completion</b></font> Show completion for โ”‚197<font color="#A5A5A1">โ”‚ the current shell, โ”‚</font>198<font color="#A5A5A1">โ”‚ to copy it or โ”‚</font>199<font color="#A5A5A1">โ”‚ customize the โ”‚</font>200<font color="#A5A5A1">โ”‚ installation. โ”‚</font>201<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>--help</b></font> Show this message โ”‚202<font color="#A5A5A1">โ”‚ and exit. โ”‚</font>203<font color="#A5A5A1">โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ</font>204<font color="#A5A5A1">โ•ญโ”€ Commands โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ</font>205<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>goodbye </b></font> โ”‚206<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>hello </b></font> โ”‚207<font color="#A5A5A1">โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ</font>

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 208why, one step back
208

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 209โ€“210why, one step back
209// You have 2 subcommands (the 2 functions): goodbye and hello
210```

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 211why, one step back
211

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 212why, one step back
212</div>

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 213why, one step back
213

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 214why, one step back
214Now check the help for the `hello` command:

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 215why, one step back
215

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 216why, one step back
216<div class="termy">

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 217why, one step back
217

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 218why, one step back
218```console

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 219โ€“220why, one step back
219$ python main.py hello --help
220

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 221โ€“229why, one step back
221<b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py hello [OPTIONS] NAME </b>
222<b> </b>223<font color="#A5A5A1">โ•ญโ”€ Arguments โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ</font>224<font color="#A5A5A1">โ”‚ </font><font color="#F92672">*</font> name <font color="#F4BF75"><b>TEXT</b></font> [default: None] <font color="#A6194C">[required]</font> โ”‚225<font color="#A5A5A1">โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ</font>226<font color="#A5A5A1">โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ</font>227<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>--help</b></font> Show this message and exit. โ”‚228<font color="#A5A5A1">โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ</font>229```

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 230why, one step back
230

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 231why, one step back
231</div>

โœจ Add support for help for CLI arguments (#123)Sebastiรกn Ramรญrezbefore adoption15380dd

line 232why, one step back
232

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 233why, one step back
233And now check the help for the `goodbye` command:

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 234why, one step back
234

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 235why, one step back
235<div class="termy">

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 236why, one step back
236

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 237why, one step back
237```console

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 238โ€“239why, one step back
238$ python main.py goodbye --help
239

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 240โ€“249why, one step back
240<b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py goodbye [OPTIONS] NAME </b>
241<b> </b>242<font color="#A5A5A1">โ•ญโ”€ Arguments โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ</font>243<font color="#A5A5A1">โ”‚ </font><font color="#F92672">*</font> name <font color="#F4BF75"><b>TEXT</b></font> [default: None] <font color="#A6194C">[required]</font> โ”‚244<font color="#A5A5A1">โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ</font>245<font color="#A5A5A1">โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ</font>246<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>--formal</b></font> <font color="#AE81FF"><b>--no-formal</b></font> [default: no-formal] โ”‚247<font color="#A5A5A1">โ”‚ </font><font color="#A1EFE4"><b>--help</b></font> Show this message โ”‚248<font color="#A5A5A1">โ”‚ and exit. โ”‚</font>249<font color="#A5A5A1">โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ</font>

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 250why, one step back
250

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 251โ€“252why, one step back
251// Automatic --formal and --no-formal for the bool option ๐ŸŽ‰
252```

โœจ Add support for help for CLI arguments (#123)Sebastiรกn Ramรญrezbefore adoption15380dd

line 253why, one step back
253

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 254why, one step back
254</div>

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 255why, one step back
255

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 256why, one step back
256Now you can try out the new command line application:

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 257why, one step back
257

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 258why, one step back
258<div class="termy">

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 259why, one step back
259

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

lines 260โ€“262why, one step back
260```console
261// Use it with the hello command262

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 263โ€“283why, one step back
263$ python main.py hello Camila
264265Hello Camila266267// And with the goodbye command268269$ python main.py goodbye Camila270271Bye Camila!272273// And with --formal274275$ python main.py goodbye --formal Camila276277Goodbye Ms. Camila. Have a good day.278```279280</div>281282### Recap283

:sparkles: Add docs for testing, password, version, context. Extra tests, include callback and autocompletion PR (#68)Sebastiรกn Ramรญrezbefore adoption5a6379f

line 284why, one step back
284In summary, you declare **once** the types of parameters (*CLI arguments* and *CLI options*) as function parameters.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 285โ€“307why, one step back
285
286You do that with standard modern Python types.287288You don't have to learn a new syntax, the methods or classes of a specific library, etc.289290Just standard **Python 3.6+**.291292For example, for an `int`:293294```Python295total: int296```297298or for a `bool` flag:299300```Python301force: bool302```303304And similarly for **files**, **paths**, **enums** (choices), etc. And there are tools to create **groups of subcommands**, add metadata, extra **validation**, etc.305306**You get**: great editor support, including **completion** and **type checks** everywhere.307

โœ Fix typos in main page/README (#103)Evan E. Bairdbefore adoption2bc3b9a

line 308why, one step back
308**Your users get**: automatic **`--help`**, **auto-completion** in their terminal (Bash, Zsh, Fish, PowerShell) when they install your package or when using <a href="https://typer.tiangolo.com/typer-cli/" class="internal-link" target="_blank">Typer CLI</a>.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 309why, one step back
309

:memo: Refactor docs with internal links #38Sebastiรกn Ramรญrezbefore adoption8d6b201

line 310why, one step back
310For a more complete example including more features, see the <a href="https://typer.tiangolo.com/tutorial/">Tutorial - User Guide</a>.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 311โ€“313why, one step back
311
312## Optional Dependencies313

:art: Tweak external links' format #36Sebastiรกn Ramรญrezbefore adoption38c19f0

line 314why, one step back
314Typer uses <a href="https://click.palletsprojects.com/" class="external-link" target="_blank">Click</a> internally. That's the only dependency.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 315โ€“317why, one step back
315
316But you can also install extras:317

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 318why, one step back
318* <a href="https://rich.readthedocs.io/en/stable/index.html" class="external-link" target="_blank"><code>rich</code></a>: and Typer will show nicely formatted errors automatically.

:sparkles: Re-implement completion, fixes, add PowerShell support (#66)Sebastiรกn Ramรญrezbefore adoption1d3337a

lines 319โ€“320why, one step back
319* <a href="https://github.com/sarugaku/shellingham" class="external-link" target="_blank"><code>shellingham</code></a>: and Typer will automatically detect the current shell when installing completion.
320 * With `shellingham` you can just use `--install-completion`.

:sparkles: Add docs for testing, password, version, context. Extra tests, include callback and autocompletion PR (#68)Sebastiรกn Ramรญrezbefore adoption5a6379f

line 321why, one step back
321 * Without `shellingham`, you have to pass the name of the shell to install completion for, e.g. `--install-completion bash`.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

line 322why, one step back
322

โœจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b

line 323why, one step back
323You can install `typer` with `rich` and `shellingham` with `pip install typer[all]`.

:memo: Add docs for get_app_dir()Sebastiรกn Ramรญrezbefore adoptione4d6047

lines 324โ€“327why, one step back
324
325## License326327This project is licensed under the terms of the MIT license.