Skip to content
Commit 6fb61445 authored by Boris Brezillon's avatar Boris Brezillon Committed by Tom Rini
Browse files

common: command: Expose a generic helper to auto-complete sub commands



Some commands have a table of sub-commands. With minor adjustments,
complete_cmdv() is able to provide auto-completion for sub-commands
(it's just about passing the table of commands instead of taking the
global one).
We rename this function into complete_subcmd() and implement
complete_cmdv() as a wrapper around complete_subcmdv().

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent cbe07ebe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment