Skip to content

kevintatou/envease

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Envease

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.

Features

  • Replace placeholders in files and directory names with unique markers.
  • Reverse the replacements to restore the original placeholders.
  • Process entire directories recursively.

Placeholders

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.

Example

  1. Create a config.json file with your desired values, check below structure:

    {
        "namespace": "your_namespace",
        "name": "your_name"
    }
  2. Run the script to replace placeholders:

    python envease.py --directory /path/to/directory
  3. To reverse the replacements, use the --reverse flag:

    python envease.py --directory /path/to/directory --reverse

Requirements

  • Python 3.x

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages