UNPKG

@atomist/sdm-pack-aspect

Version:

an Atomist SDM Extension Pack for visualizing drift across an organization

31 lines 1.01 kB
import { FileParser } from "@atomist/automation-client"; import { Aspect, FP } from "@atomist/sdm-pack-fingerprint"; import { Omit } from "../../util/omit"; export interface FileMatch { filePath: string; pathExpression: string; matchValue: string; } declare const FileMatchType = "file-match"; declare type FileMatchType = "file-match"; export interface FileMatchData { kind: FileMatchType; glob: string; matches: FileMatch[]; } export declare function isFileMatchFingerprint(fp: FP): fp is FP<FileMatchData>; export interface FileMatchParams { /** * Glob to look for */ glob: string; parseWith: FileParser; pathExpression: string; } /** * Check for presence of a match within the AST of files matching the glob. * Always return something, but may have an empty path. */ export declare function fileMatchAspect(config: Omit<Aspect, "stats" | "extract" | "apply"> & FileMatchParams): Aspect<FileMatchData>; export {}; //# sourceMappingURL=fileMatchAspect.d.ts.map