#suggestions #name #mean #did #command-line-tool #input #helps

yanked suggestion-cli

A CLI tool for similar name suggestions to provide helps like "Did you mean?"

0.3.1 Feb 1, 2022
0.3.0 Feb 1, 2022
0.2.0 Feb 1, 2022

#19 in #suggestions

MIT license

5KB

suggestion-cli crates.io version crates.io downloads

A CLI tool for similar name suggestions to provide helps like "Did you mean?"

The library version is placed here.

Installation

cargo install suggestion-cli

Usage

$ suggest --help
suggestion-cli 0.3.1
A CLI tool for similar name suggestions to provide helps like "Did you mean?"

USAGE:
    suggest [OPTIONS] <INPUT> [VALUES]...

ARGS:
    <INPUT>        Input to check if similar name exists
    <VALUES>...    Values of similar names

OPTIONS:
    -d, --distance <DISTANCE>    Levenshtein Distance
    -h, --help                   Print help information
    -q, --quiet                  Disable console outputs
    -V, --version                Print version information

Examples

$ suggest instakk update install
The `instakk` input is similar to `install`.

$ suggest hoge update install
No similar name for the `hoge` input was found.

$ suggest install update install
The same value with the `install` input exists.

$ suggest paoc poac poacpp
No similar name for the `paoc` input was found.

$ suggest paoc poac poacpp --distance 2
The `paoc` input is similar to `poac`.

Contribution

Contributions, including issues and pull requests, are very welcome.

Dependencies

~3MB
~63K SLoC