agprefs 0.3.3

A simple parser and serializer for the reading and writing agprefs files and the text fields in lrcat files from lightroom
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use agprefs::Agpref;
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;

fn main() -> Result<()> {
    for path in std::env::args().skip(1) {
        let s = std::fs::read_to_string(&path)?;
        let agprefs = Agpref::parse(&s)?;
        #[cfg(feature = "composer")]
        println!("{}", agprefs.to_str()?);
    }
    Ok(())
}