path_lookup

Crates.iopath_lookup
lib.rspath_lookup
version0.1.5
sourcesrc
created_at2024-01-29 11:11:53.634869
updated_at2024-01-29 11:56:56.225681
descriptionFind all executables in the PATH environment variable.
homepage
repositoryhttps://github.com/kantord/path_lookup-rs
max_upload_size
id1118732
size5,843
Dániel Kántor (kantord)

documentation

README

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();
Commit count: 0

cargo fmt