UNPKG

@zambelz/zhc

Version:
16 lines 517 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const execute = async (cmds, args) => { if (args.length === 0 || args[0].startsWith("-")) { const commonCommand = cmds.find((cmd) => cmd.command === "base"); commonCommand?.action(args); return; } const command = cmds.find((cmd) => cmd.command === args[0]); if (command) { command.action(args.slice(1)); return; } }; exports.default = execute; //# sourceMappingURL=executor.js.map