common: command: Add support for $ auto-completion
authorBoris Brezillon <boris.brezillon@bootlin.com>
Wed, 5 Dec 2018 08:26:50 +0000 (09:26 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Jan 2019 20:38:28 +0000 (15:38 -0500)
commit03dcf17dba3dbd6f1cfe9ecaa0665ea8c11e0ef2
tree73d8d68a2d4497ec6000f44d4ae8d4db80b40be2
parent31a2cf1ca4968dcaf78aef222b6683fea4f2c72d
common: command: Add support for $ auto-completion

Add the dollar_complete() function to auto-complete arguments starting
with a '$' and use it in the cmd_auto_complete() path such that all
args starting with a $ can be auto-completed based on the available env
vars.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
[trini: Fix some linking problems]
Signed-off-by: Tom Rini <trini@konsulko.com>
common/command.c
env/common.c
include/common.h
lib/Makefile