derlin / bitdowntoc

Online and command-line Markdown TOC generator, with built-in support for BitBucket Server, GitHub, Gitlab, dev.to and more!
https://bitdowntoc.derlin.ch
Other
92 stars 8 forks source link

Add quiet (`-q`) flag #27

Closed DDtKey closed 9 months ago

DDtKey commented 9 months ago

After upgrading bitdowntoc version to 2.0.0 I noticed that it started to produce additional output to stdout, e.g:

Generating TOC with params: Params(...)

It would be nice to be able to control this behavior, for the cases when I need to use the result of bitdowntoc in pipe

derlin commented 9 months ago

This is a good point, thanks for reporting!

In the meantime, it is possible to avoid pipes and use the -o flag to write to a file, or the -i to do it inline.

DDtKey commented 9 months ago

Yes, definitely. So I consider this more like a feature request.

Especially considering that this change was in a major update (in accordance with semver)

derlin commented 9 months ago

I will remove the print for now, until I have time to add proper logging. Sorry for the inconvenience!