lenra-io/lenra_cli

[Task] Permit other default values for the config file

オープン

#16 opened on 2022/09/14

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (2 件のフォーク)auto 404
enhancementgood first issue

Repository metrics

Stars
 (16 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド