Crates.io | superwhich |
lib.rs | superwhich |
version | 1.0.1 |
source | src |
created_at | 2024-11-04 17:04:25.143596 |
updated_at | 2024-11-04 17:54:35.718064 |
description | Cross-platform smart which alternative |
homepage | https://github.com/DarkCeptor44/superwhich |
repository | https://github.com/DarkCeptor44/superwhich |
max_upload_size | |
id | 1435323 |
size | 61,136 |
superwhich
is a cross-platform CLI tool that was initially meant to be a faster drop-in replacement for Windows' where
command but since it uses Jaro-Winkler distance to calculate the similarity between the strings it can be called a sort of "smart" which, it can handle some typos and highlights the section of the executables that matches the search pattern.
cargo install superwhich
cargo install --git https://github.com/DarkCeptor44/superwhich
cargo install --path .
$ swhich -h
Cross-platform smart which alternative
Usage: swhich [OPTIONS] <PATTERN>
Arguments:
<PATTERN> The search pattern
Options:
-c, --color <COLOR> Color of the highlighted text (off for no color) [default: blue]
-t, --print-time Print time elapsed
-h, --help Print help
-V, --version Print version
~270ms
).The benchmarks were run using Hyperfine.
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
swhich pnpm |
274.3 ± 4.0 | 264.7 | 279.0 | 2.55 ± 0.09 |
where pnpm |
107.6 ± 3.7 | 104.2 | 119.9 | 1.00 |
coming soon
This project is licensed under the terms of the GNU General Public License v3.0.