"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStarterRepo = void 0;
function getStarterRepo(starterName, starters) {
    if (starterName.includes('/')) {
        return {
            name: starterName,
            repo: starterName
        };
    }
    const repo = starters.find(starter => starter.name === starterName);
    if (!repo) {
        throw new Error(`Starter "${starterName}" does not exist.`);
    }
    return repo;
}
exports.getStarterRepo = getStarterRepo;
//# sourceMappingURL=starters.js.map