lenra-io/lenra_cli

[Task] Permit other default values for the config file

Aberta

#16 aberto em 14 de set. de 2022

 (1 comentário) (0 reação) (0 responsável)Rust (2 forks)auto 404
enhancementgood first issue

Métricas do repositório

Stars
 (16 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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.yml
  • lenra.yaml
  • lenra.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.

Guia do colaborador