Jian Li
Committed by Gerrit Code Review

[ONOS-3634] Add CLI for displaying extended application properties

Change-Id: Ia2ef8cff5c71c75bdf2a3e0cf1cad992537c6d84
...@@ -40,11 +40,11 @@ import static org.onosproject.app.ApplicationState.ACTIVE; ...@@ -40,11 +40,11 @@ import static org.onosproject.app.ApplicationState.ACTIVE;
40 public class ApplicationsListCommand extends AbstractShellCommand { 40 public class ApplicationsListCommand extends AbstractShellCommand {
41 41
42 private static final String FMT = 42 private static final String FMT =
43 - "%s id=%d, name=%s, version=%s, origin=%s, description=%s, " + 43 + "%s id=%d, name=%s, version=%s, origin=%s, category=%s, description=%s, " +
44 - "features=%s, featuresRepo=%s, apps=%s, permissions=%s"; 44 + "features=%s, featuresRepo=%s, apps=%s, permissions=%s, url=%s";
45 45
46 private static final String SHORT_FMT = 46 private static final String SHORT_FMT =
47 - "%s %3d %-32s %-8s %s"; 47 + "%s %3d %-36s %-8s %s";
48 48
49 @Option(name = "-s", aliases = "--short", description = "Show short output only", 49 @Option(name = "-s", aliases = "--short", description = "Show short output only",
50 required = false, multiValued = false) 50 required = false, multiValued = false)
...@@ -74,9 +74,9 @@ public class ApplicationsListCommand extends AbstractShellCommand { ...@@ -74,9 +74,9 @@ public class ApplicationsListCommand extends AbstractShellCommand {
74 } else { 74 } else {
75 print(FMT, isActive ? "*" : " ", 75 print(FMT, isActive ? "*" : " ",
76 app.id().id(), app.id().name(), app.version(), app.origin(), 76 app.id().id(), app.id().name(), app.version(), app.origin(),
77 - app.description(), app.features(), 77 + app.category(), app.description(), app.features(),
78 app.featuresRepo().isPresent() ? app.featuresRepo().get().toString() : "", 78 app.featuresRepo().isPresent() ? app.featuresRepo().get().toString() : "",
79 - app.requiredApps(), app.permissions()); 79 + app.requiredApps(), app.permissions(), app.url());
80 } 80 }
81 } 81 }
82 } 82 }
......