From b67242d0eaea9634358cd462f8b16020ec969577 Mon Sep 17 00:00:00 2001 From: Thomas Eppers Date: Wed, 27 Oct 2021 14:15:12 +0200 Subject: [PATCH] changed program parameter from -c to -f to match docker-compose --- src/main.rs | 2 +- src/ui/default.rs | 2 +- src/ui/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index e6278c7..bc75fb3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ pub struct Opt { /// A custom path to a docker-compose file #[structopt(short, long, parse(from_os_str))] - config: Option, + file: Option, /// Give a Repository identifier, e.g. library/nginx #[structopt(short, long, parse(from_str))] diff --git a/src/ui/default.rs b/src/ui/default.rs index 9414b78..e143e4a 100644 --- a/src/ui/default.rs +++ b/src/ui/default.rs @@ -54,7 +54,7 @@ impl Ui { state: State::SelectService, repo: repo_entry::RepoEntry::new(repo_id), tags: tag_list::TagList::with_status("Tags are empty"), - services: service_switcher::ServiceSwitcher::new(&opt.config).unwrap(), + services: service_switcher::ServiceSwitcher::new(&opt.file).unwrap(), info: info::Info::new("Select image of edit Repository"), }; diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 7a93c24..5b04af0 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -10,7 +10,7 @@ use termion::input::TermRead; use crate::widget::service_switcher; pub fn create_ui(opt: &Opt) { - let service_result = service_switcher::ServiceSwitcher::new(&opt.config); + let service_result = service_switcher::ServiceSwitcher::new(&opt.file); match service_result { None => no_yaml::NoYaml::run(opt), Some(_) => default::Ui::run(opt),