This commit is contained in:
Sanford Pun
2020-10-31 17:38:59 +08:00
committed by Chris Tsang
parent 43c403e06f
commit 0c4fa1d742
9 changed files with 535 additions and 0 deletions

14
cmdapp/src/main.rs Normal file
View File

@@ -0,0 +1,14 @@
use vtracer::{Config, convert_image_to_svg};
fn main() {
let config = Config::from_args();
let result = convert_image_to_svg(config);
match result {
Ok(()) => {
println!("Conversion successful.");
},
Err(msg) => {
panic!("Conversion failed with error message: {}", msg);
}
}
}