feat(profile): warn when a profile sets a key floci does not read (#37)

This commit is contained in:
Hector Ventura authored and GitHub committed 2026-10-08 22:47:51 -05:00
1 parent 01d6133548
commit 22668a1200
7 files changed
+125

No files matched your search

@@ -3,6 +3,7 @@ package io.floci.cli.commands.config;
import io.floci.cli.GlobalOptions;
import io.floci.cli.ProductProfile;
import io.floci.cli.config.Profile;
import io.floci.cli.config.ProfileDefaultValueProvider;
import io.floci.cli.config.ProfileStore;
import io.floci.cli.output.Ansi;
import io.floci.cli.output.OutputFormat;
@@ -148,6 +149,7 @@ public class ConfigProfileCommand implements Callable<Integer> {
var profile = store.get(name);
if (profile.isEmpty()) { printer.error("Profile '" + name + "' not found."); return 1; }
Profile p = profile.get();
ProfileDefaultValueProvider.warnAboutUnknownKeys(store, name, p);
printer.println(Ansi.bold("Profile: ") + p.name);
if (p.endpoint != null) printer.println(" endpoint: " + p.endpoint);
if (p.container != null) printer.println(" container: " + p.container);