MCPcopy
hub / github.com/firecow/gitlab-ci-local / expandText

Method expandText

src/utils.ts:140–145  ·  view source on GitHub ↗
(text: any, envs: {[key: string]: string})

Source from the content-addressed store, hash-verified

138 }
139
140 static expandText (text: any, envs: {[key: string]: string}) {
141 return this.expandTextWith(text, {
142 unescape: "$",
143 variable: (name) => envs[name] ?? "",
144 });
145 }
146
147 static expandVariables (variables: {[key: string]: string}) {
148 const _variables = {...variables}; // copy by value to prevent mutating the original input

Callers 15

constructorMethod · 0.80
servicesMethod · 0.80
getCachePrefixMethod · 0.80
getUniqueCacheNameMethod · 0.80
mountCacheCmdMethod · 0.80
imageNameMethod · 0.80
imageUserMethod · 0.80
imagePlatformMethod · 0.80
copyCacheOutMethod · 0.80
copyArtifactsOutMethod · 0.80
fetchTriggerIncludeMethod · 0.80

Calls 1

expandTextWithMethod · 0.95

Tested by

no test coverage detected