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.

貢獻者指南