-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julien Bouquillon
committed
Jan 13, 2023
1 parent
29ff227
commit 3b22fdf
Showing
8 changed files
with
87 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,41 @@ | ||
// import JSDoc definitions | ||
type Slug = typeof import("./slug"); | ||
type KindIsRunnable = typeof import("./kind-is-runnable"); | ||
type AsyncShell = typeof import("./async-shell"); | ||
type IsVersionTag = typeof import("./is-version-tag"); | ||
type SanitizeLabel = typeof import("./sanitize-label"); | ||
type IgnoreYarnState = typeof import("./ignore-yarn-state"); | ||
type PatternMatch = typeof import("./pattern-match"); | ||
type KubectlRetry = typeof import("./kubectl-retry"); | ||
|
||
// TODO : fetch from source JSDoc | ||
// TODO : fetch from ./*.js | ||
// for some reason the description from source JSDoc isnt displayed | ||
interface Utils { | ||
/** execute some async shell command */ | ||
asyncShell: AsyncShell; | ||
/** Return slugified, hostname-friendly string */ | ||
slug: Slug; | ||
/** Check if some branch is valid semantic-release tag: vx.y.z */ | ||
isVersionTag: IsVersionTag; | ||
sanitizeLabel: (label: string) => string; | ||
/** exclude non-alphanums chars */ | ||
sanitizeLabel: SanitizeLabel; | ||
//@ts-ignore | ||
yaml; | ||
//@ts-ignore | ||
logger; | ||
//@ts-ignore | ||
KontinuousPluginError; | ||
//@ts-ignore | ||
patternMatch; | ||
// typeguard . todo: extract from utils/kind-is-runnable | ||
patternMatch: PatternMatch; | ||
// check if the manifest is "runnable" in kubernetes | ||
// act as a typeguard | ||
kindIsRunnable: KindIsRunnable; | ||
//@ts-ignore | ||
kubectlRetry; | ||
/** Run kubectl with exponential backoff */ | ||
kubectlRetry: KubectlRetry; | ||
//@ts-ignore | ||
needKubectl; | ||
ignoreYarnState: (src: string) => boolean; | ||
/** check if some path should be ignored */ | ||
ignoreYarnState: IgnoreYarnState; | ||
} | ||
|
||
export default Utils; | ||
export { Utils }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters