Commit Graph

6 Commits

Author SHA1 Message Date
Akihiro Suda
a14bd76b6b
Remove GPL2 dependency introduced in v2.7.0
This commit replaces github.com/antzucaro/matchr (GPL2, introduced in v2.7.0)
with github.com/xrash/smetrics (MIT License).

Fixes issue 1404

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-05-24 15:27:35 +09:00
5bb9f453dc
Also make the did-you-mean template pluggable 2022-05-17 09:24:17 -04:00
68bd4903fd
Introduce override hooks for suggestions
Related to https://github.com/urfave/cli/pull/1390#discussion_r871398659
2022-05-17 09:02:17 -04:00
f3cf7640c7
Backing out build tag for suggestions per recommendation
from @kolyshkin 🙇
2022-05-17 08:49:15 -04:00
974f2d410d
Guard suggestion capability (+ dependency) with build tag 2022-05-07 15:21:00 -04:00
Sascha Grunert
002bde2233
Add suggestions support
The new option `app.Suggest` enables command and flag suggestions via
the jaro-winkler distance algorithm. Flags are scoped to their
appropriate commands whereas command suggestions are scoped to the
current command level.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-03-03 13:06:34 +01:00