"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get commands () {
        return commands;
    },
    get isCommand () {
        return isCommand;
    },
    get runCommand () {
        return runCommand;
    }
});
var _defaultts = /*#__PURE__*/ _interop_require_default(require("./default.js"));
var _installts = /*#__PURE__*/ _interop_require_default(require("./install.js"));
var _listts = /*#__PURE__*/ _interop_require_default(require("./list.js"));
var _localts = /*#__PURE__*/ _interop_require_default(require("./local.js"));
var _setupts = /*#__PURE__*/ _interop_require_default(require("./setup.js"));
var _teardownts = /*#__PURE__*/ _interop_require_default(require("./teardown.js"));
var _uninstallts = /*#__PURE__*/ _interop_require_default(require("./uninstall.js"));
var _whichts = /*#__PURE__*/ _interop_require_default(require("./which.js"));
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
var commands = {
    default: _defaultts.default,
    local: _localts.default,
    list: _listts.default,
    which: _whichts.default,
    install: _installts.default,
    uninstall: _uninstallts.default,
    setup: _setupts.default,
    teardown: _teardownts.default
};
function isCommand(name) {
    return name in commands;
}
function runCommand(name, args) {
    var cmd = commands[name];
    if (cmd) cmd(args);
    else console.error("Unknown command: ".concat(name));
}
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) {}; module.exports = exports.default; }