Sample
Resolve command and group names when decorated functions use _cmd, _command, _grp, or _group suffixes
sha256:ce67c41c1a1d7149b9efd29b07fd79dcf68c783f67ff3ca56383389982289602
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Resolve command and group names when decorated functions use _cmd, _command, _grp, or _group suffixes HOW
- Packages
- click 8.4.2
- Environment
- python
- Created
- 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
Files
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/cli.py
- test/contract.py
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9