stelligent / mutato

Repo formerly known as mu-cdk. A.K.A Mu2. Pronounced: mew-tah-toe
https://stelligent.github.io/mutato/
MIT License
23 stars 2 forks source link

Place the cmd nunjucks processor behind a flag #52

Open 3p3r opened 4 years ago

3p3r commented 4 years ago

Default should be that it doesn't work / is not available. Add a flag: --allow-insecure. IIRC mu has this exact flag.

We might make it a list like --allow-insecure (allow all) and --allow-insecure cmd,other for a list of things to allow, etc...

This can be done in config.ts with a boolean flag so the preprocessor class does not add its cmd helper to Nunjucks.