UNPKG

734 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Healthcheck = void 0;
4const modifiableInstruction_1 = require("../modifiableInstruction");
5class Healthcheck extends modifiableInstruction_1.ModifiableInstruction {
6 constructor(document, range, dockerfile, escapeChar, instruction, instructionRange) {
7 super(document, range, dockerfile, escapeChar, instruction, instructionRange);
8 }
9 stopSearchingForFlags(argument) {
10 argument = argument.toUpperCase();
11 return argument === "CMD" || argument === "NONE";
12 }
13 getSubcommand() {
14 let args = this.getArguments();
15 return args.length !== 0 ? args[0] : null;
16 }
17}
18exports.Healthcheck = Healthcheck;