rustyphoenixreplace 1.4.0

This project aims to provide a simple a powerfull multilines replace via a toml configuration
rustyphoenixreplace-1.4.0 is not a library.

pipeline status Latest release coverage report documentation Phoenix2 documentation DOI

Code

https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace

Documentation

https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace/index.html

Requirements

  • cargo
  • rustc

Quick start

This project aims to provide a simple a powerfull multilines replace via a toml configuration :

# Defining files to look at for a inplace replacement
vec_file_pattern = ["*.txt", "*.cpp", "*.yml", "*.toml", "*.txt", "*.cmake", "*.dox"]

# Then, define multiline pattern and replace string
[[replace]]
pattern = "some\nmultiline\npattern to search"
replace = "some\nreplace\npattern"

# You can define as many replace section as you want

Then you can call :

rustyphoenixreplace -i config.toml -r where/to/look/for/file/dir/

Installation for Users

git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace.git
cd RustyPhoenixReplace