mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
fix: updating with latest floci changes
This commit is contained in:
16 files changed
+378
-116
No files matched your search
@@ -32,7 +32,10 @@ public class VersionCommand implements Callable<Integer> {
|
||||
String serverEdition = null;
|
||||
String imageDigest = null;
|
||||
|
||||
FlociHttpClient client = new FlociHttpClient(global.endpoint);
|
||||
var docker = new io.floci.cli.docker.DockerClient();
|
||||
String effectiveEndpoint = global.resolvedEndpoint(docker);
|
||||
|
||||
FlociHttpClient client = new FlociHttpClient(effectiveEndpoint);
|
||||
try {
|
||||
var info = client.info();
|
||||
serverVersion = info.version();
|
||||
@@ -41,7 +44,6 @@ public class VersionCommand implements Callable<Integer> {
|
||||
|
||||
// Try to read image digest from Docker (best-effort)
|
||||
try {
|
||||
var docker = new io.floci.cli.docker.DockerClient();
|
||||
imageDigest = docker.imageDigest("floci/floci").orElse(null);
|
||||
} catch (Exception ignored) {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user