installed_apps_matching

Function installed_apps_matching 

Source
pub fn installed_apps_matching(filter: &str) -> Result<Vec<AppInfo>>
Expand description

Collect installed applications whose display name matches the filter.

The filter is treated as a case-insensitive literal search. Any regex metacharacters are escaped before matching, so the caller can pass a human-friendly package name instead of a regex.

ยงExample

use winbrew_windows::installed::installed_apps_matching;

let apps = installed_apps_matching("winbrew").unwrap();
for app in apps {
    println!("{} {} - {}", app.name, app.version, app.publisher);
}