refactor(cli): 优化脚本 增加command脚本的生成
This commit is contained in:
@@ -35,14 +35,14 @@ public class LaunchersService {
|
||||
serviceMap = Maps.immutable.ofAll(map);
|
||||
}
|
||||
|
||||
private LauncherService getService(String cluster) {
|
||||
public LauncherService getService(String cluster) {
|
||||
if (serviceMap.containsKey(cluster)) {
|
||||
return serviceMap.get(cluster);
|
||||
}
|
||||
throw new RuntimeException(StrUtil.format("Cluster {} not found", cluster));
|
||||
}
|
||||
|
||||
private ImmutableList<LauncherService> getServices() {
|
||||
public ImmutableList<LauncherService> getServices() {
|
||||
return serviceMap.valuesView().toList().toImmutable();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user