https://github.com/splurf/cmd-exists
Determine the existense of a command/program.
https://github.com/splurf/cmd-exists
command crates-io exists rust
Last synced: 2 months ago
JSON representation
Determine the existense of a command/program.
- Host: GitHub
- URL: https://github.com/splurf/cmd-exists
- Owner: splurf
- License: mit
- Created: 2023-12-07T19:07:28.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-07T19:18:25.000Z (over 1 year ago)
- Last Synced: 2025-02-28T09:16:04.828Z (3 months ago)
- Topics: command, crates-io, exists, rust
- Language: Rust
- Homepage: https://crates.io/crates/cmd-exists
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cmd-exists
[](https://crates.io/crates/cmd-exists)Incredibly tiny library with the sole purpose of determining whether a command/program exists in the user's shell.
## Usage
```rust
use cmd_exists::*;fn main() {
assert!(cmd_exists("neofetch").is_ok());
}
```