UNPKG

run-in-container

Version:

CLI to assist running commands inside containers

17 lines (16 loc) 619 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const run_1 = tslib_1.__importDefault(require("../commands/run")); const commandNotFound = async function (options // argv is not in the type definition, but is present ) { if (options.id && options.argv && options.argv.length > 0) { this.debug(`commandNotFound Hook: id: ${options.id}, argv: ${options.argv} `); const args = [options.id].concat(options.argv); return run_1.default.run(args); } }; // workaround for typedef exports.default = commandNotFound;