| Crates.io | path_lookup |
| lib.rs | path_lookup |
| version | 0.1.5 |
| created_at | 2024-01-29 11:11:53.634869+00 |
| updated_at | 2024-01-29 11:56:56.225681+00 |
| description | Find all executables in the PATH environment variable. |
| homepage | |
| repository | https://github.com/kantord/path_lookup-rs |
| max_upload_size | |
| id | 1118732 |
| size | 5,843 |
Find all available executable commands in $PATH in Rust.
Add path_lookup to your Cargo.toml:
cargo add path_lookup
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();