throw new CommandFailedException("Unable to start server", e);
}
}
GeoGIG loadGeoGIG(String repo, GeogigCLI cli) {
Platform platform = new DefaultPlatform();
platform.setWorkingDir(new File(repo));
GeoGIG geogig = new GeoGIG(cli.getGeogigInjector(), platform.pwd());
if (geogig.command(ResolveGeogigDir.class).call().isPresent()) {
geogig.getRepository();
}
return geogig;