diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2022-04-13 09:11:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-04-13 09:11:40 +0000 |
commit | 81beb332e2be22591f9d67d34fdb88a4fbc53c77 (patch) | |
tree | 94076206dda8cd7d448d98fe34105bd1728213d5 /framework/src/main/java/org/onap | |
parent | 82ba063e008e0f2d46bdd1e199a78a4db7650a32 (diff) | |
parent | b8650ee5d54f1b0e682fe0d0e354a57a5fa7eb10 (diff) |
Merge "re visit a block of commented-out lines of code"
Diffstat (limited to 'framework/src/main/java/org/onap')
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/cmd/OnapCommandType.java | 3 | ||||
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommandType.java b/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommandType.java index e874a14e..eb22765c 100644 --- a/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommandType.java +++ b/framework/src/main/java/org/onap/cli/fw/cmd/OnapCommandType.java @@ -27,7 +27,8 @@ public enum OnapCommandType { AUTH, CATALOG, - CMD; + CMD, + SYSTEM; /** * Get parameter type. diff --git a/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java b/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java index 912ea23d..de462b4f 100644 --- a/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java +++ b/framework/src/main/java/org/onap/cli/fw/registrar/OnapCommandRegistrar.java @@ -26,6 +26,7 @@ import java.util.Set; import org.apache.commons.io.IOUtils; import org.onap.cli.fw.cmd.OnapCommand; +import org.onap.cli.fw.cmd.OnapCommandType; import org.onap.cli.fw.cmd.dummy.OnapCommandDummy; import org.onap.cli.fw.conf.OnapCommandConfig; import org.onap.cli.fw.conf.OnapCommandConstants; @@ -413,9 +414,9 @@ public class OnapCommandRegistrar { } //don't expose system commands for user usage - //if (cmd.getInfo().getCommandType().name().equalsIgnoreCase(OnapCommandType.SYSTEM.name())) { - // continue; - //} + if (cmd.getInfo().getCommandType().name().equalsIgnoreCase(OnapCommandType.SYSTEM.name())) { + continue; + } attrSrv.getValues().add(cmd.getInfo().getService()); attrDesc.getValues().add(cmd.getDescription()); |