machin 0.3.0

Machin is a cli program that simplifies file conversions and batch processing. It's inspired from filter/map/reduce
Documentation
pub mod svg2jpg;
pub mod svg2png;

use crate::machmap::svg::svg2jpg::*;
use crate::machmap::svg::svg2png::*;
use crate::machmap::*;

impl<'a> SVGInputFile<'a> {
    pub fn new(input_file: &'a str, output_file: &'a str) -> SVGInputFile<'a> {
        let png = SVGToPNG::new(input_file, output_file);
        let jpg = SVGToJPG::new(input_file, output_file);

        let mut map: HashMap<&'a str, Box<dyn InputTo<'a> + 'a>> = HashMap::new();
        map.insert("image/png", Box::new(png));
        map.insert("image/jpeg", Box::new(jpg));
        SVGInputFile {
            input_file,
            output_file,
            map,
        }
    }
}