feat: match alias

This commit is contained in:
iff 2024-12-08 09:43:35 +01:00
parent b50ba9eeba
commit 0ed23d386c
2 changed files with 7 additions and 0 deletions

View file

@ -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]

View file

@ -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
}