reel-moby/src/main.rs

27 lines
574 B
Rust
Raw Normal View History

2021-10-17 02:37:28 +02:00
use std::path::PathBuf;
use structopt::StructOpt;
mod common;
2021-09-11 11:07:56 +02:00
mod repo;
mod repository;
2021-08-23 14:06:00 +02:00
mod ui;
mod widget;
2021-10-17 02:37:28 +02:00
/// helps you searching or updating tags of your used docker images
#[derive(StructOpt, Debug)]
pub struct Opt {
/// A custom path to a docker-compose file
#[structopt(short, long, parse(from_os_str))]
file: Option<PathBuf>,
2021-10-17 02:37:28 +02:00
/// Give a Repository identifier, e.g. library/nginx
#[structopt(short, long, parse(from_str))]
repo: Option<String>,
}
2021-08-15 20:49:12 +02:00
fn main() {
2021-10-17 02:37:28 +02:00
//parse parameter
let opt = Opt::from_args();
ui::create_ui(&opt);
2021-08-15 20:49:12 +02:00
}