@pagopa/dx-cli 0.14.2 → 0.14.3
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/bin/index.js +5 -2
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -814,7 +814,10 @@ var withSpinner = (text, successText, failText, promise) => ResultAsync6.fromPro
|
|
|
814
814
|
successText,
|
|
815
815
|
text
|
|
816
816
|
}),
|
|
817
|
-
(cause) =>
|
|
817
|
+
(cause) => {
|
|
818
|
+
console.error(`Something went wrong: ${JSON.stringify(cause, null, 2)}`);
|
|
819
|
+
return new Error(failText, { cause });
|
|
820
|
+
}
|
|
818
821
|
);
|
|
819
822
|
var validateAnswers = (answers) => okAsync2(answers);
|
|
820
823
|
var runGeneratorActions = (generator) => (answers) => withSpinner(
|
|
@@ -993,7 +996,7 @@ var makeSavemoneyCommand = () => new Command5("savemoney").description(
|
|
|
993
996
|
// src/adapters/commander/index.ts
|
|
994
997
|
var makeCli = (deps2, config2, cliDeps) => {
|
|
995
998
|
const program2 = new Command6();
|
|
996
|
-
program2.name("dx").description("The CLI for DX-Platform").version("0.14.
|
|
999
|
+
program2.name("dx").description("The CLI for DX-Platform").version("0.14.3");
|
|
997
1000
|
program2.addCommand(makeDoctorCommand(deps2, config2));
|
|
998
1001
|
program2.addCommand(makeCodemodCommand(cliDeps));
|
|
999
1002
|
program2.addCommand(makeInitCommand(deps2));
|