| Crates.io | transr |
| lib.rs | transr |
| version | 0.2.5 |
| created_at | 2023-10-15 14:39:20.265455+00 |
| updated_at | 2023-10-23 12:07:34.322479+00 |
| description | A Cli to update xml tag content from csv content |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1003795 |
| size | 22,748 |
A Cli mass-updates a XML tag content from csv input.
Run transr -h to get details.
Open sample file, it does simple logic as below.
Loop all rows in csv {
column1(`Target_Customer_Type__c`) -- match -> xml file (`ABCTarget_Customer_Type__cDEF.xml`)
column2(`help`) -- find --> (`<help>foo</help>`) in the matched xml file
column3(`info_to_update!`) -- update --> (`<help>info_to_update!</help>`) and save
the xml file
}
file.csv with matched columns (api_name,xml_tag,content), check
sample filexml folder, check sample folder-d to dry run until all file updates are as expected-d to write into xml filesIf you have Cargo,
run cargo install transr to install it locally.