Compare commits

..

No commits in common. "b67242d0eaea9634358cd462f8b16020ec969577" and "74006af796461dc5b4ee7636074582ac01207a16" have entirely different histories.

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))]
file: Option<PathBuf>, config: 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.file).unwrap(), services: service_switcher::ServiceSwitcher::new(&opt.config).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.file); let service_result = service_switcher::ServiceSwitcher::new(&opt.config);
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 Return Select current selection", "Tab Cycle widgets C-s Save C-r Reload C-q Quit ↑ ↓ Select tags or image line",
), ),
} }
} }