dockerfile-ast
Version:
Parse a Dockerfile into an array of instructions and comments.
23 lines (22 loc) • 729 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Run = void 0;
const jsonInstruction_1 = require("../jsonInstruction");
class Run extends jsonInstruction_1.JSONInstruction {
constructor(document, range, dockerfile, escapeChar, instruction, instructionRange) {
super(document, range, dockerfile, escapeChar, instruction, instructionRange);
}
stopSearchingForFlags(argument) {
return argument.indexOf("--") === -1;
}
/**
* Returns there here-documents that are defined in this RUN
* instruction.
*
* This API is experimental and subject to change.
*/
getHeredocs() {
return super.getHeredocs();
}
}
exports.Run = Run;
;