mirror of
https://github.com/kitabisa/docker-slim-action.git
synced 2025-04-16 11:46:06 +00:00

* feat: cache the bin Signed-off-by: Dwi Siswanto <me@dw1.io> * feat: print error while get cache Signed-off-by: Dwi Siswanto <me@dw1.io> --------- Signed-off-by: Dwi Siswanto <me@dw1.io>
16 lines
593 B
TypeScript
16 lines
593 B
TypeScript
import { MatchKind } from './internal-match-kind';
|
|
import { Pattern } from './internal-pattern';
|
|
/**
|
|
* Given an array of patterns, returns an array of paths to search.
|
|
* Duplicates and paths under other included paths are filtered out.
|
|
*/
|
|
export declare function getSearchPaths(patterns: Pattern[]): string[];
|
|
/**
|
|
* Matches the patterns against the path
|
|
*/
|
|
export declare function match(patterns: Pattern[], itemPath: string): MatchKind;
|
|
/**
|
|
* Checks whether to descend further into the directory
|
|
*/
|
|
export declare function partialMatch(patterns: Pattern[], itemPath: string): boolean;
|