Beispiel
click 8.4.2: Resolve command and group names when decorated functions use _cmd, _command, _grp, or _group suffixes
Verifiziertes Beispiel für pypi click 8.4.2: Resolve command and group names when decorated functions use _cmd, _command, _grp, or _group suffixes. Der…
sha256:ce67c41c1a1d7149b9efd29b07fd79dcf68c783f67ff3ca56383389982289602
Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen.
Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen.
MIT-0
Ausführungsbelege
Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.
- Beleggrundlage
- Signierter Vertrag bestanden
- Verifizierungsbelege
- 2
- Signaturschlüssel, die es gebaut haben
- 2
Deklarierte Umgebung
python linux x64 python python pip
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-16 |
| python 3.12 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-18 |
Fall
HOW- Ziel
- Resolve command and group names when decorated functions use _cmd, _command, _grp, or _group suffixes
- Pakete
- Symbole
-
- click.command
- click.group
- Umgebung
- python
- Erstellt
- 2026-08-16T07:54:31Z
Contract
- define click groups and commands using _grp, _group, _cmd, and _command function suffix conventions
- assert click >= 8.2 automatically strips _cmd, _command, _grp, and _group suffixes from derived command names
- assert invoking stripped command and nested group paths succeeds with exit code 0
- assert invoking pre-8.2 unstripped command names fails with exit code 2 and NoSuchCommand error
- assert explicit name parameter overrides suffix stripping and preserves exact requested command name
Dateien
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/cli.py
- test/contract.py