changed program parameter from -c to -f to match docker-compose

This commit is contained in:
Thomas Eppers 2021-10-27 14:15:12 +02:00
parent 7b8e613058
commit b67242d0ea
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ pub struct Opt {
/// A custom path to a docker-compose file
#[structopt(short, long, parse(from_os_str))]
config: Option<PathBuf>,
file: Option<PathBuf>,
/// Give a Repository identifier, e.g. library/nginx
#[structopt(short, long, parse(from_str))]

View File

@ -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"),
};

View File

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