summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorHermes Agent <hermes@localhost>2026-08-12 00:03:21 +0000
committerHermes Agent <hermes@localhost>2026-08-12 00:03:21 +0000
commit191e2b7429ff4547b5fdd0fbfcff943ce96c2d68 (patch)
treea7f989330ac0d2f2de13f67d4c897943391c5a55 /src/main.rs
parent25f39c857da591c665865b77483b79495caf5e00 (diff)
Add explicit image builder CLI commands
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 1ca0cab..1e06263 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,9 @@
+use alt_controller_image::cli::{run, Cli};
+use clap::Parser;
+
fn main() {
- eprintln!("The command-line interface is not available yet. Use the library to load an ImageSpec.");
- std::process::exit(2);
+ if let Err(error) = run(Cli::parse()) {
+ eprintln!("error: {error:#}");
+ std::process::exit(1);
+ }
}