Exemple
Configure Click command hierarchies via context_settings default_map and auto_envvar_prefix without silent fallback failures
sha256:098e69316075a12c6969f7a4a0129fa84a756444f787606cbf7be1421fce8d99
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Configure Click command hierarchies via context_settings default_map and auto_envvar_prefix without silent fallback failures HOW
- Paquets
- click 8.4.2
- Environnement
- python
- Créé
- 2026-08-17T03:18:53Z
Contrat
- auto_envvar_prefix generates nested uppercase snake_case envvars (PREFIX_GROUP_SUBCMD_OPTION) across all subcommands, silently ignoring flattened prefixes or kebab-case envvars
- default_map keys require CLI command names (kebab-case) for subcommand nesting hierarchy, but Python parameter identifiers (snake_case) for option keys
- default_map with snake_case command keys or kebab-case option keys is silently ignored and falls back to option defaults
- explicit envvar parameter overrides auto_envvar_prefix while retaining auto_envvar_prefix as a fallback when the explicit envvar is unset
- configuration resolution follows strict precedence: CLI argument > explicit envvar > auto_envvar_prefix > default_map > option default
Fichiers
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9