From eca7871bced78837154ad52c42864ba3c87a9904 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 18 Oct 2016 14:36:49 +0200 Subject: complete: Add completion for nv and globalvar commands The 'nv' command is often used to create a nv variable for an existing global variable, so add a command completion function for this. Signed-off-by: Sascha Hauer --- commands/nv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands/nv.c') diff --git a/commands/nv.c b/commands/nv.c index a1fb095a16..37cdb96647 100644 --- a/commands/nv.c +++ b/commands/nv.c @@ -22,6 +22,7 @@ #include #include #include +#include static int do_nv(int argc, char *argv[]) { @@ -90,4 +91,5 @@ BAREBOX_CMD_START(nv) BAREBOX_CMD_OPTS("[-r] VAR[=VALUE] ...") BAREBOX_CMD_GROUP(CMD_GRP_ENV) BAREBOX_CMD_HELP(cmd_nv_help) + BAREBOX_CMD_COMPLETE(nv_global_complete) BAREBOX_CMD_END -- cgit v1.2.3