@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
19 lines • 912 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const catenv_1 = __importDefault(require("./apps/catenv/catenv"));
const parseChoice_1 = require("./config/parseChoice");
const args = process.argv.slice(2);
const helpFlags = ["--help", "-h", "help"];
if (args.some((arg) => helpFlags.includes(arg))) {
const docLink = "https://git.panter.ch/catladder/catladder/-/blob/main/docs/1_VARS.md";
console.log(`\nUsage: catenv [env|env:component]\n\nEnv variable and catenv documentation:\n${docLink}`);
process.exit(0);
}
(0, catenv_1.default)(args[0] ? (0, parseChoice_1.parseChoice)(args[0]) : null).then(() => {
// we have to exit manually, because we have some file watches
process.exit();
});
//# sourceMappingURL=catenv.js.map