[U-Boot] [PATCH 0/2] cmd: auto-complete args starting with a $
Boris Brezillon
boris.brezillon at bootlin.com
Mon Dec 3 22:07:24 UTC 2018
Hello,
It's pretty common to pass arguments that start with a $ and are then
expanded by the shell, and I'm this kind of lazy guy that hits tab all
the time and expects the shell to suggest something appropriate. So
here is a patchset adding support for ${} auto-completion and using the
new helper from the mtd command.
Using it elsewhere should be pretty easy (I already patched env set to
use it too [1]).
Note that this patch series depends on [2].
Regards,
Boris
[1]https://github.com/bbrezillon/u-boot/commit/9f37c5b6471c7479aa043524d31531f06128771c
[2]https://patchwork.ozlabs.org/project/uboot/list/?series=79552
Boris Brezillon (2):
common: command: Provide a dollar_complete() helper
cmd: mtd: auto-complete args starting with a $ when appropriate
cmd/mtd.c | 40 ++++++++++++++++++++++++++++++++-----
common/command.c | 22 ++++++++++++++++++---
env/common.c | 50 ++++++++++++++++++++++++++++++++++++++++++++---
include/command.h | 2 ++
include/common.h | 3 ++-
5 files changed, 105 insertions(+), 12 deletions(-)
--
2.17.1
More information about the U-Boot
mailing list