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)]
|
|
|
|
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))]
|
2021-10-27 14:15:12 +02:00
|
|
|
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();
|
2021-10-20 17:50:12 +02:00
|
|
|
ui::create_ui(&opt);
|
2021-08-15 20:49:12 +02:00
|
|
|
}
|