mirror of
https://github.com/visioncortex/vtracer.git
synced 2025-12-07 09:36:09 -08:00
CMD app
This commit is contained in:
14
cmdapp/src/main.rs
Normal file
14
cmdapp/src/main.rs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user