"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const misc_1 = require("@cocalc/util/misc");
const misc_path_1 = require("@cocalc/util/misc-path");
function executables(softwareSpec) {
    const exes = [];
    for (const path in softwareSpec) {
        const name = (0, misc_1.capitalize)((0, misc_path_1.splitFirst)((0, misc_path_1.splitLast)(path, "/")[1], "-")[0]);
        exes.push({
            path,
            output: softwareSpec[path],
            name,
        });
    }
    exes.sort((0, misc_1.field_cmp)("name"));
    return exes;
}
exports.default = executables;
//# sourceMappingURL=executables.js.map