refactor(cli): 优化脚本 增加command脚本的生成

This commit is contained in:
2024-02-27 10:44:20 +08:00
parent 5ecc3daac0
commit 73f0c4c82c
12 changed files with 146 additions and 52 deletions

View File

@@ -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();
}