@catladder/cli 1.151.0 → 1.153.0
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.
- package/dist/bundles/catenv/index.js +1 -1
- package/dist/bundles/cli/index.js +1 -1
- package/dist/cli/src/catenv.js +8 -2
- package/dist/cli/src/catenv.js.map +1 -1
- package/dist/pipeline/src/build/base/createAppBuildJob.js +4 -5
- package/dist/pipeline/src/build/base/createAppBuildJob.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/catenv.ts +12 -2
package/package.json
CHANGED
package/src/catenv.ts
CHANGED
|
@@ -2,9 +2,19 @@ import catenv from "./apps/catenv/catenv";
|
|
|
2
2
|
|
|
3
3
|
import { parseChoice } from "./config/parseChoice";
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const args = process.argv.slice(2);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const helpFlags = ["--help", "-h", "help"];
|
|
8
|
+
if (args.some((arg) => helpFlags.includes(arg))) {
|
|
9
|
+
const docLink =
|
|
10
|
+
"https://git.panter.ch/catladder/catladder/-/blob/main/docs/1_VARS.md";
|
|
11
|
+
console.log(
|
|
12
|
+
`\nUsage: catenv [env|env:component]\n\nEnv variable and catenv documentation:\n${docLink}`,
|
|
13
|
+
);
|
|
14
|
+
process.exit(0);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
catenv(args[0] ? parseChoice(args[0]) : null).then(() => {
|
|
8
18
|
// we have to exit manually, because we have some file watches
|
|
9
19
|
process.exit();
|
|
10
20
|
});
|