reel-moby/src/main.rs

31 lines
687 B
Rust
Raw Normal View History

2021-10-17 02:37:28 +02:00
use std::path::PathBuf;
use structopt::StructOpt;
2021-09-11 11:07:56 +02:00
mod repo;
2021-08-25 12:23:15 +02:00
mod tags;
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)]
#[structopt(name = "main")]
pub struct Opt {
/// Show architectures of images and their sizes
#[structopt(short, long)]
verbose: bool,
/// A custom path to a docker-compose file
#[structopt(short, long, parse(from_os_str))]
config: Option<PathBuf>,
/// 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::Ui::run(&opt);
2021-08-15 20:49:12 +02:00
}