DocOps / liquidoc-gem

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.
https://docs.docops.org/liquidoc-user-manual.html
MIT License
12 stars 5 forks source link

Make it easier to override execute action's safety check #75

Open briandominick opened 5 years ago

briandominick commented 5 years ago

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.