Hello,
I want to create a Rust program that provide a nodeJS template and automaticly replace directory name, file name & file content by the program name chosen by the user.
For instance this a a (simple) nodeJS template
{application-name-kebab-case}
{application-name-lowercase}.js
index.js
where index.js contains :
require("./{application-name-lowercase}.js").start();
- I am using the following pattern to match different naming convention
{application-name-PascalCase}
{application-name-camelCase}
{application-name-snake_case}
{application-name-lowercase}
{application-name-kebab-case}
{application-name-space-delimited}
Is there a proper way to fully replace in an entire directory both directory name, file name and content ?
For the moment, I have only find the std::fs::rename but it's pretty basic ?
Thanks in advance,
JP