in eng/tools/spec-gen-sdk-runner/src/command-helpers.ts [149:175]
export function getSpecPaths(batchType: string, specRepoPath: string): string[] {
const specConfigPaths: string[] = [];
switch (batchType) {
case "all-specs": {
specConfigPaths.push(
...getAllTypeSpecPaths(specRepoPath),
...findReadmeFiles(path.join(specRepoPath, "specification")),
);
break;
}
case "all-typespecs": {
specConfigPaths.push(...getAllTypeSpecPaths(specRepoPath));
break;
}
case "all-openapis": {
specConfigPaths.push(...findReadmeFiles(path.join(specRepoPath, "specification")));
break;
}
case "sample-typespecs": {
specConfigPaths.push(
"specification/contosowidgetmanager/Contoso.Management/tspconfig.yaml",
"specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml",
);
}
}
return specConfigPaths;
}