1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const modifiableInstruction_1 = require("../modifiableInstruction");
|
4 | class 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 | }
|
17 | exports.Healthcheck = Healthcheck;
|