docker_image_pusher/cli/mod.rs
1//! Command-line interface module
2
3mod args;
4mod runner;
5
6pub use args::Args;
7pub use runner::Runner;
8
9use crate::error::Result;
10
11pub fn run() -> Result<()> {
12 let args = Args::parse_args();
13 let runner = Runner::new(args)?;
14
15 let rt = tokio::runtime::Runtime::new()
16 .map_err(|e| crate::error::PusherError::Io(e))?;
17
18 rt.block_on(runner.run())
19}