path_lookup-rs
Find all available executable commands in $PATH
in Rust.
Install
Add path_lookup
to your Cargo.toml
:
Usage
iterate_executables()
returns an Iterator<Item = String>
:
for command in iterate_executables
get_executables()
returns a HashSet<String>
:
let all_commands: = get_executables;