Fix completers for cfg command and component

Change-Id: I8186d12cb2cf5a1c02774271ca36411ae2a3b67b
This commit is contained in:
Ray Milkey 2018-10-23 14:20:10 -07:00
parent 00875fde5c
commit ae965fe22d

View File

@ -31,8 +31,6 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.ObjectNode;
import org.onosproject.cli.app.ApplicationCommandCompleter;
import org.onosproject.cli.app.ApplicationNameCompleter;
import static com.google.common.base.Strings.isNullOrEmpty; import static com.google.common.base.Strings.isNullOrEmpty;
@ -59,12 +57,12 @@ public class ComponentConfigCommand extends AbstractShellCommand {
@Argument(index = 0, name = "command", @Argument(index = 0, name = "command",
description = "Command name (get|set|preset)", description = "Command name (get|set|preset)",
required = false, multiValued = false) required = false, multiValued = false)
@Completion(ApplicationCommandCompleter.class) @Completion(ComponentConfigCommandCompleter.class)
String command = null; String command = null;
@Argument(index = 1, name = "component", description = "Component name", @Argument(index = 1, name = "component", description = "Component name",
required = false, multiValued = false) required = false, multiValued = false)
@Completion(ApplicationNameCompleter.class) @Completion(ComponentNameCompleter.class)
String component = null; String component = null;
@Argument(index = 2, name = "name", description = "Property name", @Argument(index = 2, name = "name", description = "Property name",