mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 07:35:10 +01:00
feat: stream output
This commit is contained in:
parent
86241547e8
commit
3215fe45f6
7 changed files with 1545 additions and 162 deletions
|
|
@ -100,10 +100,8 @@ pub fn get_packages(
|
|||
}
|
||||
}
|
||||
"guix" => {
|
||||
let result = command_output(
|
||||
shell,
|
||||
&format!("{} locate {}", package_manager, executable),
|
||||
);
|
||||
let result =
|
||||
command_output(shell, &format!("{} locate {}", package_manager, executable));
|
||||
if result.is_empty() {
|
||||
return None;
|
||||
}
|
||||
|
|
@ -125,7 +123,8 @@ pub fn get_packages(
|
|||
);
|
||||
return None;
|
||||
}
|
||||
let result = command_output(shell, &format!("nix-locate --regex 'bin/{}$'", executable));
|
||||
let result =
|
||||
command_output(shell, &format!("nix-locate --regex 'bin/{}$'", executable));
|
||||
if result.is_empty() {
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue