Compare commits
2 Commits
74006af796
...
b67242d0ea
Author | SHA1 | Date | |
---|---|---|---|
|
b67242d0ea | ||
|
7b8e613058 |
@ -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))]
|
||||||
|
@ -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"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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),
|
||||||
|
@ -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",
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user