An open API service indexing awesome lists of open source software.

https://github.com/kantord/path_lookup-rs

Find all available executable commands in $PATH in Rust
https://github.com/kantord/path_lookup-rs

Last synced: 7 months ago
JSON representation

Find all available executable commands in $PATH in Rust

Awesome Lists containing this project

README

          

# path_lookup-rs
Find all available executable commands in ``$PATH`` in Rust.

## Install

Add `path_lookup` to your `Cargo.toml`:

```bash
cargo add path_lookup
```

## Usage

`iterate_executables()` returns an `Iterator`:

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

`get_executables()` returns a `HashSet`:

```rust
let all_commands: HashSet = get_executables();
```