Denis Defreyne

Nanoc needs --json so that the CLI can be used programmatically

Up: Issues with Nanoc

Nanoc’s CLI is only useful for human interaction.

There is no reasonable way to programmatically detect what side effects a nanoc run has caused. I believe this led to a post-processor being implemented, when it wouldn’t really have been necessary. For example, the post-processor is used for incrementally (i.e., partially) updating a search index, which could be done outside of Nanoc if Nanoc were able to spit out the necessary information in a machine-readable format.

References

The Command Line Interface Guidelines says this about output: “Display output as formatted JSON if --json is passed.”

Note last edited October 2026.
Incoming links: