"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleApiCommand = exports.parseApiCommandArgs = exports.createApiCommandHandler = void 0;
const copy_command_1 = require("./copy-command");
const create_command_1 = require("./create-command");
const discover_command_1 = require("./discover-command");
const export_command_1 = require("./export-command");
const handler_1 = require("./handler");
const help_1 = require("./help");
const import_command_1 = require("./import-command");
const list_command_1 = require("./list-command");
const remove_command_1 = require("./remove-command");
var handler_2 = require("./handler");
Object.defineProperty(exports, "createApiCommandHandler", { enumerable: true, get: function () { return handler_2.createApiCommandHandler; } });
var shared_1 = require("./shared");
Object.defineProperty(exports, "parseApiCommandArgs", { enumerable: true, get: function () { return shared_1.parseApiCommandArgs; } });
const DEFAULT_API_COMMAND_DEPENDENCIES = {
    help: help_1.showApiCommandHelp,
    unknown: help_1.showUnknownApiCommand,
    create: create_command_1.handleApiCreateCommand,
    list: list_command_1.handleApiListCommand,
    discover: discover_command_1.handleApiDiscoverCommand,
    copy: copy_command_1.handleApiCopyCommand,
    export: export_command_1.handleApiExportCommand,
    import: import_command_1.handleApiImportCommand,
    remove: remove_command_1.handleApiRemoveCommand,
};
async function handleApiCommand(args) {
    await (0, handler_1.createApiCommandHandler)(DEFAULT_API_COMMAND_DEPENDENCIES)(args);
}
exports.handleApiCommand = handleApiCommand;
//# sourceMappingURL=index.js.map