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