Envease is a Python script designed to replace placeholders in files and directories with unique markers based on a configuration file. It can also reverse the replacements, restoring the original placeholders.
- Replace placeholders in files and directory names with unique markers.
- Reverse the replacements to restore the original placeholders.
- Process entire directories recursively.
The script replaces the following placeholders:
${{ values.namespace }}
${{ values.name }}
These placeholders will be replaced with unique markers based on the values provided in the config.json
file.
-
Create a
config.json
file with your desired values, check below structure:{ "namespace": "your_namespace", "name": "your_name" }
-
Run the script to replace placeholders:
python envease.py --directory /path/to/directory
-
To reverse the replacements, use the
--reverse
flag:python envease.py --directory /path/to/directory --reverse
- Python 3.x
This project is licensed under the MIT License. See the LICENSE file for details.