diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-12-03 22:54:19 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-15 15:28:53 -0500 |
commit | 6fb61445bb28a37397fdce5cb2d3f5ffd0e1a4e4 (patch) | |
tree | 32d40a84b5d768b3517f0eb4f2bdf2e96d7657ba /cmd/help.c | |
parent | cbe07ebeafb7b67785844830c7562adc4a1f9dbf (diff) | |
download | u-boot-6fb61445bb28a37397fdce5cb2d3f5ffd0e1a4e4.tar.gz u-boot-6fb61445bb28a37397fdce5cb2d3f5ffd0e1a4e4.tar.xz u-boot-6fb61445bb28a37397fdce5cb2d3f5ffd0e1a4e4.zip |
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: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd/help.c')
0 files changed, 0 insertions, 0 deletions