arbitrator

Crates.ioarbitrator
lib.rsarbitrator
version0.1.3
created_at2021-08-12 18:15:42.727988+00
updated_at2021-08-13 01:49:20.445253+00
descriptionFormat text based on a set of rules and regexes.
homepage
repositoryhttps://github.com/Open-Publishing-Foundation/tools/arbitrator
max_upload_size
id435346
size15,002
Oliver Brotchie (OliverBrotchie)

documentation

README

Arbitrator

Format text based on a set of rules and regexes.

Installation

cargo install arbitrator

Usage

example.txt

This is one of my paintings.
Wow thats really cool.
Thank you!

example.json

{
    "paintings": "cool {} nice",
    "cool": "{} {}"
}

Example command:

arbitrator --input example.txt --rules example.json --output output.txt

output.txt

cool This is one of my paintings. nice
Wow thats really cool. Thank you!
Commit count: 0

cargo fmt