changed program parameter from -c to -f to match docker-compose
This commit is contained in:
parent
7b8e613058
commit
b67242d0ea
@ -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))]
|
||||
|
@ -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"),
|
||||
};
|
||||
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user