UNPKG

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