mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-15 17:31:31 +02:00
Fix completers for cfg command and component
Change-Id: I8186d12cb2cf5a1c02774271ca36411ae2a3b67b
This commit is contained in:
parent
00875fde5c
commit
ae965fe22d
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user