MCPcopy Create free account
hub / github.com/devcontainers/cli / extractInstructions

Function extractInstructions

src/spec-node/dockerfileUtils.ts:137–147  ·  view source on GitHub ↗
(stageStr: string)

Source from the content-addressed store, hash-verified

135}
136
137function extractInstructions(stageStr: string) {
138 return [...stageStr.matchAll(argEnvUserStatements)]
139 .map(match => {
140 const groups = match.groups!;
141 return {
142 instruction: groups.instruction.toUpperCase(),
143 name: groups.name,
144 value: groups.value1 || groups.value2,
145 };
146 });
147}
148
149function getExpressionValue(option: string, isSet: boolean, word: string, value: string) {
150 const operations: Record<string, Function> = {

Callers 1

extractDockerfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected