path_lookup 0.1.5

Find all executables in the PATH environment variable.
Documentation

path_lookup-rs

Find all available executable commands in $PATH in Rust.

Install

Add path_lookup to your Cargo.toml:

cargo add path_lookup

Usage

iterate_executables() returns an Iterator<Item = String>:

for command in iterate_executables() {
    // ... etc ...
}

get_executables() returns a HashSet<String>:

let all_commands: HashSet<String> = get_executables();