mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
chore: cleanup
This commit is contained in:
parent
02d9cf0754
commit
1454a4b992
4 changed files with 7 additions and 14 deletions
|
|
@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
### Aded
|
### Added
|
||||||
|
|
||||||
- Package manager integration for `apt`, `dnf`, `emerge`, `nix`
|
- Package manager integration for `apt`, `dnf`, `emerge`, `nix`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,12 +105,7 @@ pub fn cnf(data: &mut Data) {
|
||||||
let render_config = ui::RenderConfig::default().with_prompt_prefix(style);
|
let render_config = ui::RenderConfig::default().with_prompt_prefix(style);
|
||||||
let msg = format!("{}", t!("install-package")).bold().blue();
|
let msg = format!("{}", t!("install-package")).bold().blue();
|
||||||
let confirm = format!("[{}]", t!("confirm-yes")).green();
|
let confirm = format!("[{}]", t!("confirm-yes")).green();
|
||||||
let hint = format!(
|
let hint = format!("{} {} {}", "[↑/↓]".blue(), confirm, "[Ctrl+C]".red());
|
||||||
"{} {} {}",
|
|
||||||
"[↑/↓]".blue(),
|
|
||||||
confirm,
|
|
||||||
"[Ctrl+C]".red()
|
|
||||||
);
|
|
||||||
eprintln!("{}", msg);
|
eprintln!("{}", msg);
|
||||||
eprintln!("{}", hint);
|
eprintln!("{}", hint);
|
||||||
let package = Select::new("\n", packages)
|
let package = Select::new("\n", packages)
|
||||||
|
|
|
||||||
|
|
@ -98,12 +98,7 @@ pub fn select_candidate(data: &mut Data) {
|
||||||
.bold()
|
.bold()
|
||||||
.blue();
|
.blue();
|
||||||
let confirm = format!("[{}]", t!("confirm-yes")).green();
|
let confirm = format!("[{}]", t!("confirm-yes")).green();
|
||||||
let hint = format!(
|
let hint = format!("{} {} {}", "[↑/↓]".blue(), confirm, "[Ctrl+C]".red());
|
||||||
"{} {} {}",
|
|
||||||
"[↓/↑]".blue(),
|
|
||||||
confirm,
|
|
||||||
"[Ctrl+C]".red()
|
|
||||||
);
|
|
||||||
eprintln!("{}", msg);
|
eprintln!("{}", msg);
|
||||||
eprintln!("{}", hint);
|
eprintln!("{}", hint);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,10 @@ pub fn get_packages(
|
||||||
if !data.has_executable("apt-file") {
|
if !data.has_executable("apt-file") {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
let result = command_output(shell, &format!("apt-file find --regexp '.*/bin/{}$'", executable));
|
let result = command_output(
|
||||||
|
shell,
|
||||||
|
&format!("apt-file find --regexp '.*/bin/{}$'", executable),
|
||||||
|
);
|
||||||
if result.is_empty() {
|
if result.is_empty() {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue