diff options
author | Julian T <julian@jtle.dk> | 2021-07-20 22:30:45 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-07-20 22:30:45 +0200 |
commit | 69bbd4ed3804833b15285cf8637e96e59135f223 (patch) | |
tree | 59a055788f80827ae03e73938e0036bf927ea7f4 /src/main.rs | |
parent | 4f44cabf637dd9962ccf66b1d5add8c67950eb6e (diff) |
Switch from python to rust
Rust implementation can parse flags, load config and iterate image files
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..06346a2 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,14 @@ +mod context; +use context::Context; + +fn main() { + println!("Hello, world!"); + + let ctx = Context::new_with_args().unwrap(); + + println!("{:?}", ctx); + + for file in ctx.get_image_files().unwrap() { + println!("{}", file.display()); + } +} |