Apidoc: Unwanted JSON output in CLI

Created on 28 Aug 2019  路  6Comments  路  Source: apidoc/apidoc

Hi,

After upgrading the library to latest version (0.17.7), in CLI output appers a JSON line.

When I run the command:
apidoc -i src -o public/docs
The CLI output is:

{"message":"Done.","level":"info"}
Done in 7.73s.

Why do we need this JSON line in CLI?

P.S. Thank you for this great library.

fixed on dev question

Most helpful comment

I have hidden this message behind the verbose flag.

All 6 comments

Hello,

That's a good question!

Probably because when it's not "info" level, a whole bunch of other stuff is displayed and it's nice to have it in json for further parsing.

@NicolasCARPi Is there some option to enable this reporting only for errors and such?

@NicolasCARPi In most of cases, this instrument is used in CLI, so in my opinion by default we do not need this JSON. I am sure that the JSON line may be useful in some cases, but not in default / CLI mode.

ok I'll reopen and see if that can be removed and hidden behind a switch.

I have hidden this message behind the verbose flag.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jimbolino picture Jimbolino  路  6Comments

a-tonchev picture a-tonchev  路  4Comments

WilsonFpz picture WilsonFpz  路  5Comments

Znarkus picture Znarkus  路  7Comments

ameliariely picture ameliariely  路  7Comments