"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const config_storage_1 = require("../../lib/config-storage");
const preferences_resolver_1 = require("../../config/preferences-resolver");
const preferences_echo_1 = require("../../config/preferences-echo");
class ConfigShow extends core_1.Command {
    async run() {
        const resolver = new preferences_resolver_1.PreferencesResolver(new config_storage_1.ConfigStorage());
        (0, preferences_echo_1.echoPreferences)(resolver.resolveAll(), resolver);
    }
}
ConfigShow.description = 'Show every preference resolved through the layered config (flag > env > project > user > default). Useful for debugging where a value is coming from.';
ConfigShow.examples = ['<%= config.bin %> <%= command.id %>'];
exports.default = ConfigShow;
