Compare commits

..

2 Commits

Author SHA1 Message Date
Thomas Eppers
b67242d0ea changed program parameter from -c to -f to match docker-compose 2021-10-27 14:15:12 +02:00
Thomas Eppers
7b8e613058 added more Hints for Input 2021-10-27 14:12:23 +02:00
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -54,7 +54,7 @@ impl Ui {
state: State::SelectService, state: State::SelectService,
repo: repo_entry::RepoEntry::new(repo_id), repo: repo_entry::RepoEntry::new(repo_id),
tags: tag_list::TagList::with_status("Tags are empty"), 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"), info: info::Info::new("Select image of edit Repository"),
}; };

View File

@ -10,7 +10,7 @@ use termion::input::TermRead;
use crate::widget::service_switcher; use crate::widget::service_switcher;
pub fn create_ui(opt: &Opt) { 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 { match service_result {
None => no_yaml::NoYaml::run(opt), None => no_yaml::NoYaml::run(opt),
Some(_) => default::Ui::run(opt), Some(_) => default::Ui::run(opt),

View File

@ -11,7 +11,7 @@ impl Info {
Self { Self {
info: String::from(info), info: String::from(info),
keys: String::from( keys: String::from(
"Tab Cycle widgets C-s Save C-r Reload C-q Quit ↑ ↓ Select tags or image line", "Tab Cycle widgets C-s Save C-r Reload C-q Quit ↑ ↓ Select tags or image line Return Select current selection",
), ),
} }
} }