From 20588ff778b81c4fe23c755d9cd2e30f09c804a6 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Thu, 20 Apr 2017 16:23:11 -0700 Subject: [PATCH] client: completion for device commands --- client/device.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client/device.c b/client/device.c index ccb2de65..816d4419 100644 --- a/client/device.c +++ b/client/device.c @@ -424,10 +424,22 @@ static const struct command device_commands[] = { { } }; +static char *family_arg_completion(const char *text, int state) +{ + return NULL; +} + +static char *entity_arg_completion(const char *text, int state) +{ + return command_entity_arg_completion(text, state, device_commands); +} + static struct command_family device_command_family = { .caption = "Devices", .name = "device", .command_list = device_commands, + .family_arg_completion = family_arg_completion, + .entity_arg_completion = entity_arg_completion, }; static int device_command_family_init(void)