@catladder/cli 0.0.0-main-b11f62bc → 0.0.0-main-acb3bf6b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -665,8 +665,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
665
665
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
666
666
|
var catenv_1 = __importDefault(__nccwpck_require__(6965));
|
|
667
667
|
var parseChoice_1 = __nccwpck_require__(3941);
|
|
668
|
-
var
|
|
669
|
-
|
|
668
|
+
var args = process.argv.slice(2);
|
|
669
|
+
var helpFlags = ["--help", "-h", "help"];
|
|
670
|
+
if (args.some(function (arg) { return helpFlags.includes(arg); })) {
|
|
671
|
+
var docLink = "https://git.panter.ch/catladder/catladder/-/blob/main/docs/1_VARS.md";
|
|
672
|
+
console.log("\nUsage: catenv [env|env:component]\n\nEnv variable and catenv documentation:\n".concat(docLink));
|
|
673
|
+
process.exit(0);
|
|
674
|
+
}
|
|
675
|
+
(0, catenv_1.default)(args[0] ? (0, parseChoice_1.parseChoice)(args[0]) : null).then(function () {
|
|
670
676
|
// we have to exit manually, because we have some file watches
|
|
671
677
|
process.exit();
|
|
672
678
|
});
|
package/dist/cli/src/catenv.js
CHANGED
|
@@ -5,8 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var catenv_1 = __importDefault(require("./apps/catenv/catenv"));
|
|
7
7
|
var parseChoice_1 = require("./config/parseChoice");
|
|
8
|
-
var
|
|
9
|
-
|
|
8
|
+
var args = process.argv.slice(2);
|
|
9
|
+
var helpFlags = ["--help", "-h", "help"];
|
|
10
|
+
if (args.some(function (arg) { return helpFlags.includes(arg); })) {
|
|
11
|
+
var docLink = "https://git.panter.ch/catladder/catladder/-/blob/main/docs/1_VARS.md";
|
|
12
|
+
console.log("\nUsage: catenv [env|env:component]\n\nEnv variable and catenv documentation:\n".concat(docLink));
|
|
13
|
+
process.exit(0);
|
|
14
|
+
}
|
|
15
|
+
(0, catenv_1.default)(args[0] ? (0, parseChoice_1.parseChoice)(args[0]) : null).then(function () {
|
|
10
16
|
// we have to exit manually, because we have some file watches
|
|
11
17
|
process.exit();
|
|
12
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catenv.js","sourceRoot":"","sources":["../../../src/catenv.ts"],"names":[],"mappings":";;;;;AAAA,gEAA0C;AAE1C,oDAAmD;AAEnD,IAAM,
|
|
1
|
+
{"version":3,"file":"catenv.js","sourceRoot":"","sources":["../../../src/catenv.ts"],"names":[],"mappings":";;;;;AAAA,gEAA0C;AAE1C,oDAAmD;AAEnD,IAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAEnC,IAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC3C,IAAI,IAAI,CAAC,IAAI,CAAC,UAAC,GAAG,IAAK,OAAA,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAvB,CAAuB,CAAC,EAAE,CAAC;IAChD,IAAM,OAAO,GACX,sEAAsE,CAAC;IACzE,OAAO,CAAC,GAAG,CACT,yFAAkF,OAAO,CAAE,CAC5F,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,IAAA,gBAAM,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,yBAAW,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;IACjD,8DAA8D;IAC9D,OAAO,CAAC,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC,CAAC"}
|