UNPKG

agentic-qe

Version:

Agentic Quality Engineering Fleet System - AI-driven quality management platform

40 lines 1.47 kB
"use strict"; /** * Config List Command - List all configuration values */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.configList = void 0; const chalk_1 = __importDefault(require("chalk")); const Config_js_1 = require("../../../utils/Config.js"); async function configList(options) { try { const config = await Config_js_1.Config.load(options.file || '.aqe/config.json'); if (options.json) { console.log(JSON.stringify(config, null, 2)); return; } console.log(chalk_1.default.blue('📋 AQE Configuration:')); printConfig(config, ''); } catch (error) { console.error(chalk_1.default.red('❌ Failed to list config:'), error); process.exit(1); } } exports.configList = configList; function printConfig(obj, prefix) { for (const [key, value] of Object.entries(obj)) { const fullKey = prefix ? `${prefix}.${key}` : key; if (typeof value === 'object' && value !== null && !Array.isArray(value)) { console.log(chalk_1.default.cyan(`${fullKey}:`)); printConfig(value, fullKey); } else { console.log(chalk_1.default.cyan(` ${fullKey}:`), chalk_1.default.white(JSON.stringify(value))); } } } //# sourceMappingURL=list.js.map