import defaultCmd from './default.js';
import installCmd from './install.js';
import listCmd from './list.js';
import localCmd from './local.js';
import setupCmd from './setup.js';
import teardownCmd from './teardown.js';
import uninstallCmd from './uninstall.js';
import whichCmd from './which.js';
export const commands = {
    default: defaultCmd,
    local: localCmd,
    list: listCmd,
    which: whichCmd,
    install: installCmd,
    uninstall: uninstallCmd,
    setup: setupCmd,
    teardown: teardownCmd
};
export function isCommand(name) {
    return name in commands;
}
export function runCommand(name, args) {
    const cmd = commands[name];
    if (cmd) cmd(args);
    else console.error(`Unknown command: ${name}`);
}
