mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
feat: match alias
This commit is contained in:
parent
b50ba9eeba
commit
0ed23d386c
2 changed files with 7 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Added
|
||||
|
||||
- Package manager integration for `apt`, `dnf`, `emerge`, `nix`
|
||||
- Adding aliases to executable match
|
||||
|
||||
## [0.5.15]
|
||||
|
||||
|
|
|
|||
|
|
@ -139,6 +139,12 @@ impl Data {
|
|||
pub fn get_executables(&mut self) -> &Vec<String> {
|
||||
if self.executables.is_empty() {
|
||||
self.executables = get_path_files();
|
||||
if self.alias.is_some() {
|
||||
let alias = self.alias.as_ref().unwrap();
|
||||
for command in alias.keys() {
|
||||
self.executables.push(command.to_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
&self.executables
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue