refactor(java-cli): drop dead no-arg GalaxyCommand ctors (Task 3 review)
This commit is contained in:
-19
@@ -372,10 +372,6 @@ public final class MxGatewayCli implements Callable<Integer> {
|
|||||||
@Option(names = "--json", description = "Write JSON output.")
|
@Option(names = "--json", description = "Write JSON output.")
|
||||||
boolean json;
|
boolean json;
|
||||||
|
|
||||||
GalaxyCommand() {
|
|
||||||
this(new GrpcGalaxyClientFactory());
|
|
||||||
}
|
|
||||||
|
|
||||||
GalaxyCommand(GalaxyClientFactory galaxyClientFactory) {
|
GalaxyCommand(GalaxyClientFactory galaxyClientFactory) {
|
||||||
this.galaxyClientFactory = galaxyClientFactory;
|
this.galaxyClientFactory = galaxyClientFactory;
|
||||||
}
|
}
|
||||||
@@ -390,9 +386,6 @@ public final class MxGatewayCli implements Callable<Integer> {
|
|||||||
aliases = {"galaxy-test"},
|
aliases = {"galaxy-test"},
|
||||||
description = "Calls GalaxyRepository.TestConnection.")
|
description = "Calls GalaxyRepository.TestConnection.")
|
||||||
static final class GalaxyTestConnectionCommand extends GalaxyCommand {
|
static final class GalaxyTestConnectionCommand extends GalaxyCommand {
|
||||||
GalaxyTestConnectionCommand() {
|
|
||||||
}
|
|
||||||
|
|
||||||
GalaxyTestConnectionCommand(GalaxyClientFactory galaxyClientFactory) {
|
GalaxyTestConnectionCommand(GalaxyClientFactory galaxyClientFactory) {
|
||||||
super(galaxyClientFactory);
|
super(galaxyClientFactory);
|
||||||
}
|
}
|
||||||
@@ -421,9 +414,6 @@ public final class MxGatewayCli implements Callable<Integer> {
|
|||||||
aliases = {"galaxy-deploy-time"},
|
aliases = {"galaxy-deploy-time"},
|
||||||
description = "Calls GalaxyRepository.GetLastDeployTime.")
|
description = "Calls GalaxyRepository.GetLastDeployTime.")
|
||||||
static final class GalaxyDeployTimeCommand extends GalaxyCommand {
|
static final class GalaxyDeployTimeCommand extends GalaxyCommand {
|
||||||
GalaxyDeployTimeCommand() {
|
|
||||||
}
|
|
||||||
|
|
||||||
GalaxyDeployTimeCommand(GalaxyClientFactory galaxyClientFactory) {
|
GalaxyDeployTimeCommand(GalaxyClientFactory galaxyClientFactory) {
|
||||||
super(galaxyClientFactory);
|
super(galaxyClientFactory);
|
||||||
}
|
}
|
||||||
@@ -452,9 +442,6 @@ public final class MxGatewayCli implements Callable<Integer> {
|
|||||||
|
|
||||||
@Command(name = "galaxy-discover", description = "Calls GalaxyRepository.DiscoverHierarchy.")
|
@Command(name = "galaxy-discover", description = "Calls GalaxyRepository.DiscoverHierarchy.")
|
||||||
static final class GalaxyDiscoverCommand extends GalaxyCommand {
|
static final class GalaxyDiscoverCommand extends GalaxyCommand {
|
||||||
GalaxyDiscoverCommand() {
|
|
||||||
}
|
|
||||||
|
|
||||||
GalaxyDiscoverCommand(GalaxyClientFactory galaxyClientFactory) {
|
GalaxyDiscoverCommand(GalaxyClientFactory galaxyClientFactory) {
|
||||||
super(galaxyClientFactory);
|
super(galaxyClientFactory);
|
||||||
}
|
}
|
||||||
@@ -494,9 +481,6 @@ public final class MxGatewayCli implements Callable<Integer> {
|
|||||||
name = "galaxy-browse",
|
name = "galaxy-browse",
|
||||||
description = "Browses the Galaxy hierarchy via GalaxyRepository.BrowseChildren.")
|
description = "Browses the Galaxy hierarchy via GalaxyRepository.BrowseChildren.")
|
||||||
static final class GalaxyBrowseCommand extends GalaxyCommand {
|
static final class GalaxyBrowseCommand extends GalaxyCommand {
|
||||||
GalaxyBrowseCommand() {
|
|
||||||
}
|
|
||||||
|
|
||||||
GalaxyBrowseCommand(GalaxyClientFactory galaxyClientFactory) {
|
GalaxyBrowseCommand(GalaxyClientFactory galaxyClientFactory) {
|
||||||
super(galaxyClientFactory);
|
super(galaxyClientFactory);
|
||||||
}
|
}
|
||||||
@@ -761,9 +745,6 @@ public final class MxGatewayCli implements Callable<Integer> {
|
|||||||
name = "galaxy-watch",
|
name = "galaxy-watch",
|
||||||
description = "Streams GalaxyRepository.WatchDeployEvents until cancelled.")
|
description = "Streams GalaxyRepository.WatchDeployEvents until cancelled.")
|
||||||
static final class GalaxyWatchCommand extends GalaxyCommand {
|
static final class GalaxyWatchCommand extends GalaxyCommand {
|
||||||
GalaxyWatchCommand() {
|
|
||||||
}
|
|
||||||
|
|
||||||
GalaxyWatchCommand(GalaxyClientFactory galaxyClientFactory) {
|
GalaxyWatchCommand(GalaxyClientFactory galaxyClientFactory) {
|
||||||
super(galaxyClientFactory);
|
super(galaxyClientFactory);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user