"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runCatalogCommand = runCatalogCommand;
const metadata_1 = require("../catalog/metadata");
const json_output_1 = require("./json-output");
async function runCatalogCommand(cwd, args) {
    switch (args.action) {
        case "topics":
            return runCatalogTopicsListCommand(cwd);
    }
}
async function runCatalogTopicsListCommand(cwd) {
    const result = await (0, metadata_1.listCatalogTopics)({ repoRoot: cwd });
    (0, json_output_1.printCommandJson)(result);
    return 0;
}
