jkcfg / jk

Configuration as Code with ECMAScript
https://jkcfg.github.io
Apache License 2.0
404 stars 30 forks source link

Sandbox writes #346

Closed squaremo closed 4 years ago

squaremo commented 4 years ago

This runs writes through the sandbox (formerly known as ReadBase). Since jk transform --overwrite is expected to be able to write to the files it's given on the command line, there is a mechanism for std modules to escape the sandbox, as an expansion of the host module introduced in #338.

Fixes #345. Fixes #344.

squaremo commented 4 years ago

At present, allowing unsandboxed writes (or reads, for that matter) for a module is a on/off switch, but with a bit of finessing it could be an explicit list of files.

squaremo commented 4 years ago

This one is worth a review if you have the opportunity @dlespiau