MINOR: actions: add a function to suggest an action ressembling a given word
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 10:59:24 +0000 (11:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 13:13:21 +0000 (14:13 +0100)
commit99eb2cc1cc3171f1443201d4174e716ee7903f1e
tree0248d7e265fd244ddc5062337490cd10e8fa06e6
parent433b05fa6448c1cda47dfadc5abcfa8d80ae1ff1
MINOR: actions: add a function to suggest an action ressembling a given word

action_suggest() will return a pointer to an action whose keyword more or
less ressembles the passed argument. It also accepts to be more tolerant
against prefixes (since actions taking arguments are handled as prefixes).
This will be used to suggest approaching words.
include/haproxy/action.h
src/action.c