rustyphoenixreplace 1.4.0

This project aims to provide a simple a powerfull multilines replace via a toml configuration
[![pipeline status](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace/badges/main/pipeline.svg?ignore_skipped=true)](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace/-/pipelines)
[![Latest release](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace/-/badges/release.svg)](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace/-/releases)
[![coverage report](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace/badges/main/coverage.svg)](https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace/coverage/index.html)
[![documentation](doc/images/documentation_logo.svg)](https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/code-generator/RustyPhoenixReplace/)
[![Phoenix2 documentation](https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PHOENIX2/-/raw/e9bdfd51a202d7825f38cda136c9287f9cee3c1c/doc/badge_phoenix2_documentation.svg)](https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/PHOENIX2/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.18683539.svg)](https://doi.org/10.5281/zenodo.18683539)


# 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 :

```toml
# 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
```