0.3.1 |
|
---|---|
0.3.0 |
|
0.2.0 |
|
#24 in #建议
5KB
建议命令行工具
这是一个命令行工具,用于提供类似名称的建议,如“您是指...吗?”的帮助。
库版本位于 此处。
安装
cargo install suggestion-cli
用法
$ 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
示例
$ 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`.
贡献
欢迎提交贡献,包括问题和拉取请求。
依赖项
~3MB
~61K SLoC