update nav

This commit is contained in:
zachary62
2025-04-04 13:48:54 -04:00
parent 14df136587
commit 2fa60fe7d5
38 changed files with 159 additions and 286 deletions

View File

@@ -1,3 +1,10 @@
---
layout: default
title: "Decorators"
parent: "Click"
nav_order: 2
---
# Chapter 2: Decorators: Magic Wands for Your Functions
In [Chapter 1: Commands and Groups](01_command___group.md), we learned how to create basic command-line actions (`Command`) and group them together (`Group`). You might have noticed those strange `@click.command()` and `@click.group()` lines above our functions. What are they, and why do we use them?