{"size": 1566, "ext": "js", "max_stars_repo_path": "dist/src/run.js", "max_stars_repo_name": "devorama-app/shell-ts", "max_stars_repo_stars_event_min_datetime": "2020-04-21T15:03:42.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-21T15:03:42.000Z", "max_issues_repo_path": "dist/src/run.js", "max_issues_repo_name": "devorama-app/shell-ts", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/src/run.js", "max_forks_repo_name": "devorama-app/shell-ts", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 44.7428571429, "max_line_length": 99, "alphanum_fraction": 0.6149425287}
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const process = __importStar(require("process"));
const minimist_1 = __importDefault(require("minimist"));
exports.default = (shellDirectory, config) => {
    const argv = minimist_1.default(process.argv.slice(2));
    const { _: shellArgs } = argv, options = __rest(argv, ["_"]);
    const [dirName, ...args] = shellArgs;
    const className = dirName + "Shell";
    const { default: ShellClass, } = require(`${shellDirectory}/${dirName}/${className}`);
    const shellClass = new ShellClass({ args, options, config });
    shellClass.run();
};
//# sourceMappingURL=run.js.map