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),