danielgtaylor / aglio

An API Blueprint renderer with theme support that outputs static HTML
4.75k stars 480 forks source link

Return with a non-zero exit code on failure #291

Open greg0ire opened 8 years ago

greg0ire commented 8 years ago

It would be great to have aglio return something else than zero on failure (or is it warning ?), to be able to use that in CI, for instance. Maybe introduce a --strict option for that?

greg0ire commented 8 years ago

My workaround for the moment : test $(aglio --input /docs/ws.apib --output ws.html 2>&1 >/dev/null |wc -m) -eq 0 (thanks @L-P )