lenra-io/lenra_cli

[Task] Permit other default values for the config file

开放

#16 创建于 2022年9月14日

 (1 条评论) (0 个反应) (0 位负责人)Rust (2 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (16 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南