mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10: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]
|
||||
|
||||
### Aded
|
||||
### Added
|
||||
|
||||
- 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 msg = format!("{}", t!("install-package")).bold().blue();
|
||||
let confirm = format!("[{}]", t!("confirm-yes")).green();
|
||||
let hint = format!(
|
||||
"{} {} {}",
|
||||
"[↑/↓]".blue(),
|
||||
confirm,
|
||||
"[Ctrl+C]".red()
|
||||
);
|
||||
let hint = format!("{} {} {}", "[↑/↓]".blue(), confirm, "[Ctrl+C]".red());
|
||||
eprintln!("{}", msg);
|
||||
eprintln!("{}", hint);
|
||||
let package = Select::new("\n", packages)
|
||||
|
|
|
|||
|
|
@ -98,12 +98,7 @@ pub fn select_candidate(data: &mut Data) {
|
|||
.bold()
|
||||
.blue();
|
||||
let confirm = format!("[{}]", t!("confirm-yes")).green();
|
||||
let hint = format!(
|
||||
"{} {} {}",
|
||||
"[↓/↑]".blue(),
|
||||
confirm,
|
||||
"[Ctrl+C]".red()
|
||||
);
|
||||
let hint = format!("{} {} {}", "[↑/↓]".blue(), confirm, "[Ctrl+C]".red());
|
||||
eprintln!("{}", msg);
|
||||
eprintln!("{}", hint);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,10 @@ pub fn get_packages(
|
|||
if !data.has_executable("apt-file") {
|
||||
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() {
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue