saojs / sao

⚔ Futuristic scaffolding tool
https://sao.vercel.app
MIT License
1.05k stars 61 forks source link

[v1] Access to answers in saofile actions #126

Open shaunwarman opened 5 years ago

shaunwarman commented 5 years ago

It would be nice to have access to prompt answers in the actions section when modifying files. It seems like in v1 that this is no longer the generator instance.

A simple workaround or path forward is just to modify files based on answers in the completed section using this._answers and being sure to alter the file based on the new template path.

silvandiepen commented 5 years ago

This would also make it possible to rename files based on the answers given, this would be perfect. At the moment I rename files very dirty in the completed using fs.