UNPKG

@catladder/cli

Version:

Panter cli tool for cloud CI/CD and DevOps

14 lines 628 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeFirstLinesFromCommandOutput = void 0; /** * * takes a command and removes the first keep lines from the output * * @param cmd the command, its stdout is then limited * @param removeFirstN how many lines to remove at the start of the command * @returns */ const removeFirstLinesFromCommandOutput = (cmd, removeFirstN) => (removeFirstN === 0 ? cmd : `${cmd} | tail -n +${removeFirstN + 1}`); exports.removeFirstLinesFromCommandOutput = removeFirstLinesFromCommandOutput; //# sourceMappingURL=removeFirstLinesFromCommandOutput.js.map