@atomist/org-visualizer
Version:
Organization Visualizer using Atomist project scanning
37 lines • 972 B
TypeScript
import { Project } from "@atomist/automation-client";
/**
* Subproject status
*/
export declare enum SubprojectStatus {
/**
* This is definitely NOT a monorepo
*/
RootOnly = "RootOnly",
/**
* This is definitely a monorepo
*/
IdentifiedPaths = "IdentifiedPaths",
/**
* The monorepo status of this repo cannot be determined
*/
Unknown = "Unknown"
}
export interface SubprojectDescriptor {
path: string;
reason: string;
}
export interface Subprojects {
status: SubprojectStatus;
subprojects?: SubprojectDescriptor[];
}
export interface SubprojectFinder {
name: string;
findSubprojects: (project: Project) => Promise<Subprojects>;
}
/**
* Return a subproject finder of all these
* @param {SubprojectFinder} finders
* @return {SubprojectFinder}
*/
export declare function firstSubprojectFinderOf(...finders: SubprojectFinder[]): SubprojectFinder;
//# sourceMappingURL=subprojectFinder.d.ts.map