chore: update prompt hint

This commit is contained in:
iff 2024-12-08 01:04:36 +01:00
parent 1577ce400e
commit faa7623411
2 changed files with 3 additions and 2 deletions

View file

@ -104,10 +104,11 @@ pub fn cnf(data: &mut Data) {
let style = ui::Styled::default();
let render_config = ui::RenderConfig::default().with_prompt_prefix(style);
let msg = format!("{}", t!("install-package")).bold().blue();
let confirm = format!("[{}]", t!("confirm-yes")).green();
let hint = format!(
"{} {} {}",
"[↑/↓]".blue(),
t!("confirm-yes").green(),
confirm,
"[Ctrl+C]".red()
);
eprintln!("{}", msg);

View file

@ -100,7 +100,7 @@ pub fn select_candidate(data: &mut Data) {
let confirm = format!("[{}]", t!("confirm-yes")).green();
let hint = format!(
"{} {} {}",
"[↓/↑] / [j/k]".blue(),
"[↓/↑]".blue(),
confirm,
"[Ctrl+C]".red()
);