The canonical gem source for LiquiDoc, a ruby-based documentation parsing and rendering utility enabling advanced builds with Asciidoctor, Jekyll, Liquid, and semi-structured data files.
When a config containing any shell command (execute action) is triggered without the use of the --unsafe flag, a CLI interrogative interrupts the routine with a warning and asks, Do you approve? (YES/no):. This should be more like Do you approve? (y/N).
Use something like answer.strip.match(/[y|Y|yes|YES]/) to reject everything else.
When a config containing any shell command (execute action) is triggered without the use of the
--unsafe
flag, a CLI interrogative interrupts the routine with a warning and asks,Do you approve? (YES/no):
. This should be more likeDo you approve? (y/N)
.Use something like
answer.strip.match(/[y|Y|yes|YES]/)
to reject everything else.