lenra-io/lenra_cli
[Task] Permit other default values for the config file
Ouverte
#16 ouverte le 14 sept. 2022
enhancementgood first issue
Métriques du dépôt
- Stars
- (16 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
What should be done
Instead of always loading the lenra.yml file as config file, handle many file extensions.
The files will be loaded in the next order and stops, when one exists:
lenra.ymllenra.yamllenra.json
Technical recommandation
Check if the file exists before loading it.
When loading the lenra.json be careful because I'm not sure that serde_yaml handle it perfectly.