lycheeverse / lychee

⚡ Fast, async, stream-based link checker written in Rust. Finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites and more!
https://lychee.cli.rs
Apache License 2.0
2.23k stars 136 forks source link

Setting the `format` flag within a custom `lychee.toml` config file does not work #1533

Closed afalhambra-hivemq closed 1 month ago

afalhambra-hivemq commented 1 month ago

Hello, I'm just trying to see if I can define the format inside my custom lychee.toml config file, but I found a couple of issues:

With the following config

format = "json"

I get the following error message:

   [ERROR] Error while loading config: Cannot load configuration file `./lychee.toml`: Failed to parse configuration file

Caused by:
    TOML parse error at line 38, column 10
       |
    38 | format = "json"
       |          ^^^^^^
    unknown variant `json`, expected one of `Compact`, `Detailed`, `Json`, `Markdown`, `Raw`

So then, I decided to change from json to Json, but it does not work and the output is shown in the default format compact.

mre commented 1 month ago

Nice catch! It's fixed in master now. Stay tuned for the next release. 😊