@webiny/cli-core 0.0.0-unstable.9f53ea597d → 0.0.0-unstable.a85ef555b2
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/Cli.d.ts +2 -1
- package/Cli.js +2 -2
- package/Cli.js.map +1 -1
- package/abstractions/services/DefaultAppsService.d.ts +8 -0
- package/abstractions/services/DefaultAppsService.js +5 -0
- package/abstractions/services/DefaultAppsService.js.map +1 -0
- package/abstractions/services/index.d.ts +1 -0
- package/abstractions/services/index.js +1 -0
- package/createCliContainer.d.ts +1 -1
- package/createCliContainer.js +22 -24
- package/createCliContainer.js.map +1 -1
- package/decorators/index.d.ts +0 -1
- package/decorators/index.js +0 -1
- package/features/BuildCommand/BuildCommand.d.ts +5 -3
- package/features/BuildCommand/BuildCommand.js +27 -14
- package/features/BuildCommand/BuildCommand.js.map +1 -1
- package/features/DeployCommand/index.d.ts +20 -1
- package/features/DeployCommand/index.js +0 -1
- package/features/DepsSync/ListAllPackages.d.ts +1 -1
- package/features/DepsSync/ListAllPackages.js +5 -3
- package/features/DepsSync/ListAllPackages.js.map +1 -1
- package/features/DepsSync/commands/SyncDepsCommand.js +1 -1
- package/features/DepsSync/commands/SyncDepsCommand.js.map +1 -1
- package/features/DepsSync/commands/VerifyDepsCommand.js +1 -1
- package/features/DepsSync/commands/VerifyDepsCommand.js.map +1 -1
- package/features/DepsSync/createDependencyTree.d.ts +1 -1
- package/features/DepsSync/createDependencyTree.js +8 -5
- package/features/DepsSync/createDependencyTree.js.map +1 -1
- package/features/DepsSync/paths.js +2 -2
- package/features/DepsSync/paths.js.map +1 -1
- package/features/InfoCommand/InfoCommand.js +5 -1
- package/features/InfoCommand/InfoCommand.js.map +1 -1
- package/features/UpgradeCommand/UpgradeCommandHandler.js +3 -3
- package/features/UpgradeCommand/UpgradeCommandHandler.js.map +1 -1
- package/features/Wcp/LinkProjectCommand.js +1 -1
- package/features/Wcp/LinkProjectCommand.js.map +1 -1
- package/features/globalOptions/TraceGlobalOption.d.ts +5 -0
- package/features/globalOptions/TraceGlobalOption.js +22 -0
- package/features/globalOptions/TraceGlobalOption.js.map +1 -0
- package/features/globalOptions/index.d.ts +1 -0
- package/features/globalOptions/index.js +1 -0
- package/features/gracefulErrorHandlers/index.d.ts +0 -2
- package/features/gracefulErrorHandlers/index.js +0 -2
- package/features/index.d.ts +0 -5
- package/features/index.js +0 -5
- package/package.json +18 -16
- package/services/DefaultAppsService/DefaultAppsService.d.ts +5 -0
- package/services/DefaultAppsService/DefaultAppsService.js +15 -0
- package/services/DefaultAppsService/DefaultAppsService.js.map +1 -0
- package/services/DefaultAppsService/index.d.ts +1 -0
- package/services/DefaultAppsService/index.js +1 -0
- package/services/GetCliRunnerService/GetCliRunnerService.js +5 -1
- package/services/GetCliRunnerService/GetCliRunnerService.js.map +1 -1
- package/services/UiService/UiService.d.ts +18 -0
- package/services/UiService/UiService.js +18 -2
- package/services/UiService/UiService.js.map +1 -1
- package/services/index.d.ts +1 -0
- package/services/index.js +1 -0
- package/utils/ensureSameWebinyPackageVersions/ensureSameWebinyPackageVersions.d.ts +1 -0
- package/utils/ensureSameWebinyPackageVersions/ensureSameWebinyPackageVersions.js +53 -0
- package/utils/ensureSameWebinyPackageVersions/ensureSameWebinyPackageVersions.js.map +1 -0
- package/utils/ensureSameWebinyPackageVersions/getCacheFilePath.d.ts +1 -0
- package/utils/ensureSameWebinyPackageVersions/getCacheFilePath.js +12 -0
- package/utils/ensureSameWebinyPackageVersions/getCacheFilePath.js.map +1 -0
- package/utils/ensureSameWebinyPackageVersions/hashYarnLock.d.ts +1 -0
- package/utils/ensureSameWebinyPackageVersions/hashYarnLock.js +16 -0
- package/utils/ensureSameWebinyPackageVersions/hashYarnLock.js.map +1 -0
- package/utils/ensureSameWebinyPackageVersions/index.d.ts +6 -0
- package/utils/ensureSameWebinyPackageVersions/index.js +6 -0
- package/utils/ensureSameWebinyPackageVersions/listWebinyPackageVersions.d.ts +1 -0
- package/utils/ensureSameWebinyPackageVersions/listWebinyPackageVersions.js +31 -0
- package/utils/ensureSameWebinyPackageVersions/listWebinyPackageVersions.js.map +1 -0
- package/utils/ensureSameWebinyPackageVersions/readClearedYarnLockHash.d.ts +1 -0
- package/utils/ensureSameWebinyPackageVersions/readClearedYarnLockHash.js +13 -0
- package/utils/ensureSameWebinyPackageVersions/readClearedYarnLockHash.js.map +1 -0
- package/utils/ensureSameWebinyPackageVersions/writeClearedYarnLockHash.d.ts +1 -0
- package/utils/ensureSameWebinyPackageVersions/writeClearedYarnLockHash.js +24 -0
- package/utils/ensureSameWebinyPackageVersions/writeClearedYarnLockHash.js.map +1 -0
- package/utils/suppressPunycodeWarnings.d.ts +4 -0
- package/utils/suppressPunycodeWarnings.js +7 -0
- package/utils/suppressPunycodeWarnings.js.map +1 -0
- package/decorators/DeployCommandWithTelemetry.d.ts +0 -11
- package/decorators/DeployCommandWithTelemetry.js +0 -81
- package/decorators/DeployCommandWithTelemetry.js.map +0 -1
- package/features/DeployCommand/DeployCommand.d.ts +0 -30
- package/features/DeployCommand/DeployCommand.js +0 -176
- package/features/DeployCommand/DeployCommand.js.map +0 -1
- package/features/DeployCommand/deployOutputs/BaseDeployOutput.d.ts +0 -20
- package/features/DeployCommand/deployOutputs/BaseDeployOutput.js +0 -15
- package/features/DeployCommand/deployOutputs/BaseDeployOutput.js.map +0 -1
- package/features/DeployCommand/deployOutputs/DeployOutput.d.ts +0 -5
- package/features/DeployCommand/deployOutputs/DeployOutput.js +0 -23
- package/features/DeployCommand/deployOutputs/DeployOutput.js.map +0 -1
- package/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.d.ts +0 -4
- package/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.js +0 -96
- package/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.js.map +0 -1
- package/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.d.ts +0 -4
- package/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.js +0 -31
- package/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.js.map +0 -1
- package/features/DestroyCommand/DestroyCommand.d.ts +0 -22
- package/features/DestroyCommand/DestroyCommand.js +0 -82
- package/features/DestroyCommand/DestroyCommand.js.map +0 -1
- package/features/DestroyCommand/index.d.ts +0 -1
- package/features/DestroyCommand/index.js +0 -1
- package/features/OutputCommand.d.ts +0 -12
- package/features/OutputCommand.js +0 -66
- package/features/OutputCommand.js.map +0 -1
- package/features/PulumiCommand/PulumiCommand.d.ts +0 -13
- package/features/PulumiCommand/PulumiCommand.js +0 -57
- package/features/PulumiCommand/PulumiCommand.js.map +0 -1
- package/features/PulumiCommand/index.d.ts +0 -1
- package/features/PulumiCommand/index.js +0 -1
- package/features/RefreshCommand/RefreshCommand.d.ts +0 -12
- package/features/RefreshCommand/RefreshCommand.js +0 -51
- package/features/RefreshCommand/RefreshCommand.js.map +0 -1
- package/features/RefreshCommand/index.d.ts +0 -1
- package/features/RefreshCommand/index.js +0 -1
- package/features/WatchCommand/WatchCommand.d.ts +0 -11
- package/features/WatchCommand/WatchCommand.js +0 -143
- package/features/WatchCommand/WatchCommand.js.map +0 -1
- package/features/WatchCommand/createPrefixer.d.ts +0 -2
- package/features/WatchCommand/createPrefixer.js +0 -16
- package/features/WatchCommand/createPrefixer.js.map +0 -1
- package/features/WatchCommand/getRandomColorForString.d.ts +0 -1
- package/features/WatchCommand/getRandomColorForString.js +0 -89
- package/features/WatchCommand/getRandomColorForString.js.map +0 -1
- package/features/WatchCommand/index.d.ts +0 -1
- package/features/WatchCommand/index.js +0 -1
- package/features/gracefulErrorHandlers/DdbPutItemConditionalCheckFailedGracefulErrorHandler.d.ts +0 -6
- package/features/gracefulErrorHandlers/DdbPutItemConditionalCheckFailedGracefulErrorHandler.js +0 -27
- package/features/gracefulErrorHandlers/DdbPutItemConditionalCheckFailedGracefulErrorHandler.js.map +0 -1
- package/features/gracefulErrorHandlers/PendingOperationsGracefulErrorHandler.d.ts +0 -6
- package/features/gracefulErrorHandlers/PendingOperationsGracefulErrorHandler.js +0 -29
- package/features/gracefulErrorHandlers/PendingOperationsGracefulErrorHandler.js.map +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
class BaseDeployOutput {
|
|
2
|
-
constructor({ deployProcess, stdio, ui, showDeploymentLogs, deployParams }){
|
|
3
|
-
this.deployProcess = deployProcess;
|
|
4
|
-
this.stdio = stdio;
|
|
5
|
-
this.ui = ui;
|
|
6
|
-
this.showDeploymentLogs = showDeploymentLogs;
|
|
7
|
-
this.deployParams = deployParams;
|
|
8
|
-
}
|
|
9
|
-
async output() {
|
|
10
|
-
throw new Error("Not implemented.");
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export { BaseDeployOutput };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=BaseDeployOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/DeployCommand/deployOutputs/BaseDeployOutput.js","sources":["../../../../src/features/DeployCommand/deployOutputs/BaseDeployOutput.ts"],"sourcesContent":["import { UiService, StdioService } from \"~/abstractions/index.js\";\nimport { IDeploySingleAppParams } from \"../DeployCommand.js\";\nimport { ExecaChildProcess } from \"execa\";\n\nexport type IDeployProcess = ExecaChildProcess<string>;\n\nexport interface IBaseDeployOutputParams {\n deployProcess: IDeployProcess;\n stdio: StdioService.Interface;\n ui: UiService.Interface;\n showDeploymentLogs: boolean;\n deployParams: IDeploySingleAppParams;\n}\n\nexport class BaseDeployOutput {\n public readonly deployProcess: IDeployProcess;\n public readonly stdio: StdioService.Interface;\n public readonly ui: UiService.Interface;\n public readonly showDeploymentLogs: boolean;\n public readonly deployParams: IDeploySingleAppParams;\n\n public constructor({\n deployProcess,\n stdio,\n ui,\n showDeploymentLogs,\n deployParams\n }: IBaseDeployOutputParams) {\n this.deployProcess = deployProcess;\n this.stdio = stdio;\n this.ui = ui;\n this.showDeploymentLogs = showDeploymentLogs;\n this.deployParams = deployParams;\n }\n\n public async output(): Promise<void> {\n throw new Error(\"Not implemented.\");\n }\n}\n"],"names":["BaseDeployOutput","deployProcess","stdio","ui","showDeploymentLogs","deployParams","Error"],"mappings":"AAcO,MAAMA;IAOT,YAAmB,EACfC,aAAa,EACbC,KAAK,EACLC,EAAE,EACFC,kBAAkB,EAClBC,YAAY,EACU,CAAE;QACxB,IAAI,CAAC,aAAa,GAAGJ;QACrB,IAAI,CAAC,KAAK,GAAGC;QACb,IAAI,CAAC,EAAE,GAAGC;QACV,IAAI,CAAC,kBAAkB,GAAGC;QAC1B,IAAI,CAAC,YAAY,GAAGC;IACxB;IAEA,MAAa,SAAwB;QACjC,MAAM,IAAIC,MAAM;IACpB;AACJ"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BaseDeployOutput } from "./BaseDeployOutput.js";
|
|
2
|
-
import { NoDeploymentLogsDeployOutput } from "./NoDeploymentLogsDeployOutput.js";
|
|
3
|
-
import { WithDeploymentLogsDeployOutput } from "./WithDeploymentLogsDeployOutput.js";
|
|
4
|
-
class DeployOutput extends BaseDeployOutput {
|
|
5
|
-
async output() {
|
|
6
|
-
const OutputClass = this.getOutputClass();
|
|
7
|
-
const output = new OutputClass({
|
|
8
|
-
deployProcess: this.deployProcess,
|
|
9
|
-
stdio: this.stdio,
|
|
10
|
-
ui: this.ui,
|
|
11
|
-
showDeploymentLogs: this.showDeploymentLogs,
|
|
12
|
-
deployParams: this.deployParams
|
|
13
|
-
});
|
|
14
|
-
return output.output();
|
|
15
|
-
}
|
|
16
|
-
getOutputClass() {
|
|
17
|
-
if (this.showDeploymentLogs) return WithDeploymentLogsDeployOutput;
|
|
18
|
-
return NoDeploymentLogsDeployOutput;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export { DeployOutput };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=DeployOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/DeployCommand/deployOutputs/DeployOutput.js","sources":["../../../../src/features/DeployCommand/deployOutputs/DeployOutput.ts"],"sourcesContent":["import { BaseDeployOutput } from \"./BaseDeployOutput.js\";\nimport { NoDeploymentLogsDeployOutput } from \"./NoDeploymentLogsDeployOutput.js\";\nimport { WithDeploymentLogsDeployOutput } from \"./WithDeploymentLogsDeployOutput.js\";\n\nexport class DeployOutput extends BaseDeployOutput {\n public override async output() {\n const OutputClass = this.getOutputClass();\n\n const output = new OutputClass({\n deployProcess: this.deployProcess,\n stdio: this.stdio,\n ui: this.ui,\n showDeploymentLogs: this.showDeploymentLogs,\n deployParams: this.deployParams\n });\n\n return output.output();\n }\n\n private getOutputClass() {\n if (this.showDeploymentLogs) {\n return WithDeploymentLogsDeployOutput;\n }\n\n return NoDeploymentLogsDeployOutput;\n }\n}\n"],"names":["DeployOutput","BaseDeployOutput","OutputClass","output","WithDeploymentLogsDeployOutput","NoDeploymentLogsDeployOutput"],"mappings":";;;AAIO,MAAMA,qBAAqBC;IAC9B,MAAsB,SAAS;QAC3B,MAAMC,cAAc,IAAI,CAAC,cAAc;QAEvC,MAAMC,SAAS,IAAID,YAAY;YAC3B,eAAe,IAAI,CAAC,aAAa;YACjC,OAAO,IAAI,CAAC,KAAK;YACjB,IAAI,IAAI,CAAC,EAAE;YACX,oBAAoB,IAAI,CAAC,kBAAkB;YAC3C,cAAc,IAAI,CAAC,YAAY;QACnC;QAEA,OAAOC,OAAO,MAAM;IACxB;IAEQ,iBAAiB;QACrB,IAAI,IAAI,CAAC,kBAAkB,EACvB,OAAOC;QAGX,OAAOC;IACX;AACJ"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { measureDuration } from "../../utils/index.js";
|
|
2
|
-
import { BaseDeployOutput } from "./BaseDeployOutput.js";
|
|
3
|
-
import ora from "ora";
|
|
4
|
-
const SPINNER_MESSAGES = [
|
|
5
|
-
[
|
|
6
|
-
60,
|
|
7
|
-
"Still deploying..."
|
|
8
|
-
],
|
|
9
|
-
[
|
|
10
|
-
120,
|
|
11
|
-
"Still deploying, please wait..."
|
|
12
|
-
],
|
|
13
|
-
[
|
|
14
|
-
180,
|
|
15
|
-
"Some resources take some time to become ready, please wait..."
|
|
16
|
-
],
|
|
17
|
-
[
|
|
18
|
-
270,
|
|
19
|
-
"Still deploying, please don't interrupt..."
|
|
20
|
-
],
|
|
21
|
-
[
|
|
22
|
-
360,
|
|
23
|
-
"Still deploying, please be patient..."
|
|
24
|
-
],
|
|
25
|
-
[
|
|
26
|
-
450,
|
|
27
|
-
"Still deploying, please don't interrupt..."
|
|
28
|
-
],
|
|
29
|
-
[
|
|
30
|
-
540,
|
|
31
|
-
"Still deploying, please be patient..."
|
|
32
|
-
],
|
|
33
|
-
[
|
|
34
|
-
600,
|
|
35
|
-
"Deploying for 10 minutes now, probably a couple more to go..."
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
720,
|
|
39
|
-
"Still deploying, shouldn't be much longer now..."
|
|
40
|
-
],
|
|
41
|
-
[
|
|
42
|
-
840,
|
|
43
|
-
"Looks like it's taking a bit longer than usual, please wait..."
|
|
44
|
-
],
|
|
45
|
-
[
|
|
46
|
-
900,
|
|
47
|
-
"Deploying for 15 minutes now, hopefully it's almost done..."
|
|
48
|
-
],
|
|
49
|
-
[
|
|
50
|
-
1200,
|
|
51
|
-
"Deploying for 20 minutes now, hopefully it's almost done..."
|
|
52
|
-
]
|
|
53
|
-
];
|
|
54
|
-
class NoDeploymentLogsDeployOutput extends BaseDeployOutput {
|
|
55
|
-
async output() {
|
|
56
|
-
const deployProcess = this.deployProcess;
|
|
57
|
-
const ui = this.ui;
|
|
58
|
-
const params = this.deployParams;
|
|
59
|
-
const isPreview = !!params.preview;
|
|
60
|
-
const getDeploymentDuration = measureDuration();
|
|
61
|
-
const spinner = ora(isPreview ? "Previewing deployment..." : "Deploying...");
|
|
62
|
-
const spinnerMessagesTimeouts = SPINNER_MESSAGES.map(([seconds, message])=>setTimeout(()=>{
|
|
63
|
-
spinner.text = message;
|
|
64
|
-
}, 1000 * seconds));
|
|
65
|
-
const threeDotsInterval = setInterval(()=>{
|
|
66
|
-
const spinnerText = spinner.text;
|
|
67
|
-
if (spinnerText.endsWith("...")) spinner.text = spinnerText.substring(0, spinnerText.length - 3);
|
|
68
|
-
else spinner.text = spinnerText + ".";
|
|
69
|
-
}, 1000);
|
|
70
|
-
try {
|
|
71
|
-
spinner.start();
|
|
72
|
-
await deployProcess;
|
|
73
|
-
if (isPreview) spinner.succeed(`Preview completed in ${getDeploymentDuration()}.`);
|
|
74
|
-
else spinner.succeed(`Deployed in ${getDeploymentDuration()}.`);
|
|
75
|
-
} catch (e) {
|
|
76
|
-
if (isPreview) {
|
|
77
|
-
spinner.fail("Preview failed.");
|
|
78
|
-
ui.emptyLine();
|
|
79
|
-
ui.text(e.message);
|
|
80
|
-
ui.error("Preview failed, please check the details above.");
|
|
81
|
-
} else {
|
|
82
|
-
spinner.fail("Deployment failed.");
|
|
83
|
-
ui.emptyLine();
|
|
84
|
-
ui.text(e.message);
|
|
85
|
-
ui.error("Deployment failed, please check the details above.");
|
|
86
|
-
}
|
|
87
|
-
throw e;
|
|
88
|
-
} finally{
|
|
89
|
-
spinnerMessagesTimeouts.forEach(clearTimeout);
|
|
90
|
-
clearInterval(threeDotsInterval);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
export { NoDeploymentLogsDeployOutput };
|
|
95
|
-
|
|
96
|
-
//# sourceMappingURL=NoDeploymentLogsDeployOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.js","sources":["../../../../src/features/DeployCommand/deployOutputs/NoDeploymentLogsDeployOutput.ts"],"sourcesContent":["import { measureDuration } from \"~/features/utils/index.js\";\nimport { BaseDeployOutput } from \"./BaseDeployOutput.js\";\nimport ora from \"ora\";\n\nconst SPINNER_MESSAGES: [number, string][] = [\n [60, \"Still deploying...\"],\n [120, \"Still deploying, please wait...\"],\n [180, \"Some resources take some time to become ready, please wait...\"],\n\n [270, \"Still deploying, please don't interrupt...\"],\n [360, \"Still deploying, please be patient...\"],\n [450, \"Still deploying, please don't interrupt...\"],\n [540, \"Still deploying, please be patient...\"],\n\n [600, \"Deploying for 10 minutes now, probably a couple more to go...\"],\n [720, \"Still deploying, shouldn't be much longer now...\"],\n\n [840, \"Looks like it's taking a bit longer than usual, please wait...\"],\n [900, \"Deploying for 15 minutes now, hopefully it's almost done...\"],\n\n [1200, \"Deploying for 20 minutes now, hopefully it's almost done...\"]\n];\n\nexport class NoDeploymentLogsDeployOutput extends BaseDeployOutput {\n public override async output() {\n const deployProcess = this.deployProcess;\n const ui = this.ui;\n const params = this.deployParams;\n\n const isPreview = !!params.preview;\n\n const getDeploymentDuration = measureDuration();\n\n const spinner = ora(isPreview ? \"Previewing deployment...\" : \"Deploying...\");\n\n // When showing spinner, we want to show a few messages to the user.\n // The deployment process can take in some cases 10-15 minutes, so we want to\n // give the user some feedback.\n const spinnerMessagesTimeouts = SPINNER_MESSAGES.map(([seconds, message]) => {\n return setTimeout(() => {\n spinner.text = message;\n }, seconds * 1000);\n });\n\n // Every second, let's add a dot to the end of the message.\n // Once we reach three dots, we start over.\n const threeDotsInterval = setInterval(() => {\n const spinnerText = spinner.text;\n if (spinnerText.endsWith(\"...\")) {\n spinner.text = spinnerText.substring(0, spinnerText.length - 3);\n } else {\n spinner.text = spinnerText + \".\";\n }\n }, 1000);\n\n try {\n spinner.start();\n await deployProcess;\n\n if (isPreview) {\n spinner.succeed(`Preview completed in ${getDeploymentDuration()}.`);\n } else {\n spinner.succeed(`Deployed in ${getDeploymentDuration()}.`);\n }\n } catch (e) {\n if (isPreview) {\n spinner.fail(\"Preview failed.\");\n ui.emptyLine();\n ui.text(e.message);\n ui.error(\"Preview failed, please check the details above.\");\n } else {\n spinner.fail(\"Deployment failed.\");\n ui.emptyLine();\n ui.text(e.message);\n ui.error(\"Deployment failed, please check the details above.\");\n }\n\n throw e;\n } finally {\n spinnerMessagesTimeouts.forEach(clearTimeout);\n clearInterval(threeDotsInterval);\n }\n }\n}\n"],"names":["SPINNER_MESSAGES","NoDeploymentLogsDeployOutput","BaseDeployOutput","deployProcess","ui","params","isPreview","getDeploymentDuration","measureDuration","spinner","ora","spinnerMessagesTimeouts","seconds","message","setTimeout","threeDotsInterval","setInterval","spinnerText","e","clearTimeout","clearInterval"],"mappings":";;;AAIA,MAAMA,mBAAuC;IACzC;QAAC;QAAI;KAAqB;IAC1B;QAAC;QAAK;KAAkC;IACxC;QAAC;QAAK;KAAgE;IAEtE;QAAC;QAAK;KAA6C;IACnD;QAAC;QAAK;KAAwC;IAC9C;QAAC;QAAK;KAA6C;IACnD;QAAC;QAAK;KAAwC;IAE9C;QAAC;QAAK;KAAgE;IACtE;QAAC;QAAK;KAAmD;IAEzD;QAAC;QAAK;KAAiE;IACvE;QAAC;QAAK;KAA8D;IAEpE;QAAC;QAAM;KAA8D;CACxE;AAEM,MAAMC,qCAAqCC;IAC9C,MAAsB,SAAS;QAC3B,MAAMC,gBAAgB,IAAI,CAAC,aAAa;QACxC,MAAMC,KAAK,IAAI,CAAC,EAAE;QAClB,MAAMC,SAAS,IAAI,CAAC,YAAY;QAEhC,MAAMC,YAAY,CAAC,CAACD,OAAO,OAAO;QAElC,MAAME,wBAAwBC;QAE9B,MAAMC,UAAUC,IAAIJ,YAAY,6BAA6B;QAK7D,MAAMK,0BAA0BX,iBAAiB,GAAG,CAAC,CAAC,CAACY,SAASC,QAAQ,GAC7DC,WAAW;gBACdL,QAAQ,IAAI,GAAGI;YACnB,GAAGD,AAAU,OAAVA;QAKP,MAAMG,oBAAoBC,YAAY;YAClC,MAAMC,cAAcR,QAAQ,IAAI;YAChC,IAAIQ,YAAY,QAAQ,CAAC,QACrBR,QAAQ,IAAI,GAAGQ,YAAY,SAAS,CAAC,GAAGA,YAAY,MAAM,GAAG;iBAE7DR,QAAQ,IAAI,GAAGQ,cAAc;QAErC,GAAG;QAEH,IAAI;YACAR,QAAQ,KAAK;YACb,MAAMN;YAEN,IAAIG,WACAG,QAAQ,OAAO,CAAC,CAAC,qBAAqB,EAAEF,wBAAwB,CAAC,CAAC;iBAElEE,QAAQ,OAAO,CAAC,CAAC,YAAY,EAAEF,wBAAwB,CAAC,CAAC;QAEjE,EAAE,OAAOW,GAAG;YACR,IAAIZ,WAAW;gBACXG,QAAQ,IAAI,CAAC;gBACbL,GAAG,SAAS;gBACZA,GAAG,IAAI,CAACc,EAAE,OAAO;gBACjBd,GAAG,KAAK,CAAC;YACb,OAAO;gBACHK,QAAQ,IAAI,CAAC;gBACbL,GAAG,SAAS;gBACZA,GAAG,IAAI,CAACc,EAAE,OAAO;gBACjBd,GAAG,KAAK,CAAC;YACb;YAEA,MAAMc;QACV,SAAU;YACNP,wBAAwB,OAAO,CAACQ;YAChCC,cAAcL;QAClB;IACJ;AACJ"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { measureDuration } from "../../utils/index.js";
|
|
2
|
-
import { BaseDeployOutput } from "./BaseDeployOutput.js";
|
|
3
|
-
import { PulumiError } from "@webiny/pulumi-sdk";
|
|
4
|
-
class WithDeploymentLogsDeployOutput extends BaseDeployOutput {
|
|
5
|
-
async output() {
|
|
6
|
-
const deployProcess = this.deployProcess;
|
|
7
|
-
const ui = this.ui;
|
|
8
|
-
const stdio = this.stdio;
|
|
9
|
-
const params = this.deployParams;
|
|
10
|
-
const isPreview = !!params.preview;
|
|
11
|
-
const getDeploymentDuration = measureDuration();
|
|
12
|
-
try {
|
|
13
|
-
if (isPreview) ui.info("Previewing deployment for %s app...", params.app);
|
|
14
|
-
else ui.info("Deploying %s app...", params.app);
|
|
15
|
-
ui.emptyLine();
|
|
16
|
-
this.deployProcess.stdout.pipe(stdio.getStdout());
|
|
17
|
-
this.deployProcess.stderr.pipe(stdio.getStderr());
|
|
18
|
-
await deployProcess;
|
|
19
|
-
if (isPreview) ui.success(`Preview completed in ${getDeploymentDuration()}.`);
|
|
20
|
-
else ui.success(`Deployed in ${getDeploymentDuration()}.`);
|
|
21
|
-
} catch (e) {
|
|
22
|
-
e instanceof PulumiError || ui.text(e.message);
|
|
23
|
-
if (isPreview) ui.error("Preview failed, please check the details above.");
|
|
24
|
-
else ui.error("Deployment failed, please check the details above.");
|
|
25
|
-
throw e;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export { WithDeploymentLogsDeployOutput };
|
|
30
|
-
|
|
31
|
-
//# sourceMappingURL=WithDeploymentLogsDeployOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.js","sources":["../../../../src/features/DeployCommand/deployOutputs/WithDeploymentLogsDeployOutput.ts"],"sourcesContent":["import { measureDuration } from \"~/features/utils/index.js\";\nimport { BaseDeployOutput } from \"./BaseDeployOutput.js\";\nimport { PulumiError } from \"@webiny/pulumi-sdk\";\n\nexport class WithDeploymentLogsDeployOutput extends BaseDeployOutput {\n public override async output() {\n const deployProcess = this.deployProcess;\n const ui = this.ui;\n const stdio = this.stdio;\n const params = this.deployParams;\n\n const isPreview = !!params.preview;\n\n const getDeploymentDuration = measureDuration();\n\n try {\n if (isPreview) {\n ui.info(`Previewing deployment for %s app...`, params.app);\n } else {\n ui.info(`Deploying %s app...`, params.app);\n }\n\n ui.emptyLine();\n\n this.deployProcess.stdout!.pipe(stdio.getStdout());\n this.deployProcess.stderr!.pipe(stdio.getStderr());\n await deployProcess;\n\n if (isPreview) {\n ui.success(`Preview completed in ${getDeploymentDuration()}.`);\n } else {\n ui.success(`Deployed in ${getDeploymentDuration()}.`);\n }\n } catch (e) {\n // If Pulumi error, we don't need to show the error message, as it will be shown by Pulumi.\n if (e instanceof PulumiError) {\n // Do nothing.\n } else {\n ui.text(e.message);\n }\n\n if (isPreview) {\n ui.error(\"Preview failed, please check the details above.\");\n } else {\n ui.error(\"Deployment failed, please check the details above.\");\n }\n\n throw e;\n }\n }\n}\n"],"names":["WithDeploymentLogsDeployOutput","BaseDeployOutput","deployProcess","ui","stdio","params","isPreview","getDeploymentDuration","measureDuration","e","PulumiError"],"mappings":";;;AAIO,MAAMA,uCAAuCC;IAChD,MAAsB,SAAS;QAC3B,MAAMC,gBAAgB,IAAI,CAAC,aAAa;QACxC,MAAMC,KAAK,IAAI,CAAC,EAAE;QAClB,MAAMC,QAAQ,IAAI,CAAC,KAAK;QACxB,MAAMC,SAAS,IAAI,CAAC,YAAY;QAEhC,MAAMC,YAAY,CAAC,CAACD,OAAO,OAAO;QAElC,MAAME,wBAAwBC;QAE9B,IAAI;YACA,IAAIF,WACAH,GAAG,IAAI,CAAC,uCAAuCE,OAAO,GAAG;iBAEzDF,GAAG,IAAI,CAAC,uBAAuBE,OAAO,GAAG;YAG7CF,GAAG,SAAS;YAEZ,IAAI,CAAC,aAAa,CAAC,MAAM,CAAE,IAAI,CAACC,MAAM,SAAS;YAC/C,IAAI,CAAC,aAAa,CAAC,MAAM,CAAE,IAAI,CAACA,MAAM,SAAS;YAC/C,MAAMF;YAEN,IAAII,WACAH,GAAG,OAAO,CAAC,CAAC,qBAAqB,EAAEI,wBAAwB,CAAC,CAAC;iBAE7DJ,GAAG,OAAO,CAAC,CAAC,YAAY,EAAEI,wBAAwB,CAAC,CAAC;QAE5D,EAAE,OAAOE,GAAG;YAEJA,aAAaC,eAGbP,GAAG,IAAI,CAACM,EAAE,OAAO;YAGrB,IAAIH,WACAH,GAAG,KAAK,CAAC;iBAETA,GAAG,KAAK,CAAC;YAGb,MAAMM;QACV;IACJ;AACJ"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CliCommandFactory, GetProjectSdkService, StdioService, UiService } from "../../abstractions/index.js";
|
|
2
|
-
import { AppName } from "@webiny/project";
|
|
3
|
-
export interface IDestroyNoAppParams {
|
|
4
|
-
variant?: string;
|
|
5
|
-
region?: string;
|
|
6
|
-
env: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IDestroyWithAppParams extends IDestroyNoAppParams {
|
|
9
|
-
app: AppName;
|
|
10
|
-
build?: boolean;
|
|
11
|
-
preview?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export type IDestroyCommandParams = IDestroyNoAppParams | IDestroyWithAppParams;
|
|
14
|
-
export declare class DestroyCommand implements CliCommandFactory.Interface<IDestroyCommandParams> {
|
|
15
|
-
private getProjectSdkService;
|
|
16
|
-
private uiService;
|
|
17
|
-
private stdioService;
|
|
18
|
-
constructor(getProjectSdkService: GetProjectSdkService.Interface, uiService: UiService.Interface, stdioService: StdioService.Interface);
|
|
19
|
-
execute(): Promise<CliCommandFactory.CommandDefinition<IDestroyCommandParams>>;
|
|
20
|
-
private destroyApp;
|
|
21
|
-
}
|
|
22
|
-
export declare const destroyCommand: import("@webiny/di").Implementation<typeof DestroyCommand>;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { createImplementation } from "@webiny/di";
|
|
2
|
-
import { CliCommandFactory, GetProjectSdkService, StdioService, UiService } from "../../abstractions/index.js";
|
|
3
|
-
import { measureDuration } from "../utils/index.js";
|
|
4
|
-
import { createBaseAppOptions } from "../common/index.js";
|
|
5
|
-
import { PulumiError } from "@webiny/pulumi-sdk";
|
|
6
|
-
class DestroyCommand {
|
|
7
|
-
constructor(getProjectSdkService, uiService, stdioService){
|
|
8
|
-
this.getProjectSdkService = getProjectSdkService;
|
|
9
|
-
this.uiService = uiService;
|
|
10
|
-
this.stdioService = stdioService;
|
|
11
|
-
}
|
|
12
|
-
async execute() {
|
|
13
|
-
const projectSdk = await this.getProjectSdkService.execute();
|
|
14
|
-
return {
|
|
15
|
-
name: "destroy",
|
|
16
|
-
description: "Destroys specified app or all apps in the project",
|
|
17
|
-
examples: [
|
|
18
|
-
"$0 destroy api --env dev",
|
|
19
|
-
"$0 destroy admin --env prod",
|
|
20
|
-
"$0 destroy --env prod",
|
|
21
|
-
"$0 destroy"
|
|
22
|
-
],
|
|
23
|
-
params: [
|
|
24
|
-
{
|
|
25
|
-
name: "app",
|
|
26
|
-
description: "Name of the app (core, admin, or api)",
|
|
27
|
-
type: "string"
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
options: createBaseAppOptions(projectSdk),
|
|
31
|
-
handler: async (params)=>{
|
|
32
|
-
if ("app" in params) return this.destroyApp(params);
|
|
33
|
-
await this.destroyApp({
|
|
34
|
-
...params,
|
|
35
|
-
app: "admin"
|
|
36
|
-
});
|
|
37
|
-
await this.destroyApp({
|
|
38
|
-
...params,
|
|
39
|
-
app: "api"
|
|
40
|
-
});
|
|
41
|
-
await this.destroyApp({
|
|
42
|
-
...params,
|
|
43
|
-
app: "core"
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
async destroyApp(params) {
|
|
49
|
-
const projectSdk = await this.getProjectSdkService.execute();
|
|
50
|
-
const ui = this.uiService;
|
|
51
|
-
const stdio = this.stdioService;
|
|
52
|
-
const { pulumiProcess } = await projectSdk.destroyApp(params);
|
|
53
|
-
const getDestroyDuration = measureDuration();
|
|
54
|
-
try {
|
|
55
|
-
ui.info("Destroying %s app...", params.app);
|
|
56
|
-
ui.emptyLine();
|
|
57
|
-
pulumiProcess.stdout.pipe(stdio.getStdout());
|
|
58
|
-
pulumiProcess.stderr.pipe(stdio.getStderr());
|
|
59
|
-
await pulumiProcess;
|
|
60
|
-
ui.success(`Destroyed in ${getDestroyDuration()}.`);
|
|
61
|
-
} catch (e) {
|
|
62
|
-
if (e instanceof PulumiError) ui.error("Destroy failed, please check the details above.");
|
|
63
|
-
else {
|
|
64
|
-
ui.text(e.message);
|
|
65
|
-
ui.error("Destroy failed, please check the details above.");
|
|
66
|
-
}
|
|
67
|
-
throw e;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
const destroyCommand = createImplementation({
|
|
72
|
-
abstraction: CliCommandFactory,
|
|
73
|
-
implementation: DestroyCommand,
|
|
74
|
-
dependencies: [
|
|
75
|
-
GetProjectSdkService,
|
|
76
|
-
UiService,
|
|
77
|
-
StdioService
|
|
78
|
-
]
|
|
79
|
-
});
|
|
80
|
-
export { DestroyCommand, destroyCommand };
|
|
81
|
-
|
|
82
|
-
//# sourceMappingURL=DestroyCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/DestroyCommand/DestroyCommand.js","sources":["../../../src/features/DestroyCommand/DestroyCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n CliCommandFactory,\n GetProjectSdkService,\n StdioService,\n UiService\n} from \"~/abstractions/index.js\";\nimport { measureDuration } from \"~/features/utils/index.js\";\nimport { createBaseAppOptions } from \"~/features/common/index.js\";\nimport { PulumiError } from \"@webiny/pulumi-sdk\";\nimport { AppName } from \"@webiny/project\";\n\nexport interface IDestroyNoAppParams {\n variant?: string;\n region?: string;\n env: string;\n}\n\nexport interface IDestroyWithAppParams extends IDestroyNoAppParams {\n app: AppName;\n build?: boolean;\n preview?: boolean;\n}\n\nexport type IDestroyCommandParams = IDestroyNoAppParams | IDestroyWithAppParams;\n\nexport class DestroyCommand implements CliCommandFactory.Interface<IDestroyCommandParams> {\n constructor(\n private getProjectSdkService: GetProjectSdkService.Interface,\n private uiService: UiService.Interface,\n private stdioService: StdioService.Interface\n ) {}\n\n async execute(): Promise<CliCommandFactory.CommandDefinition<IDestroyCommandParams>> {\n const projectSdk = await this.getProjectSdkService.execute();\n\n return {\n name: \"destroy\",\n description: \"Destroys specified app or all apps in the project\",\n examples: [\n \"$0 destroy api --env dev\",\n \"$0 destroy admin --env prod\",\n \"$0 destroy --env prod\",\n \"$0 destroy\"\n ],\n params: [\n {\n name: \"app\",\n description: \"Name of the app (core, admin, or api)\",\n type: \"string\"\n }\n ],\n options: createBaseAppOptions(projectSdk),\n handler: async (params: IDestroyCommandParams) => {\n if (\"app\" in params) {\n return this.destroyApp(params);\n }\n\n // Destroy all apps in the project.\n await this.destroyApp({ ...params, app: \"admin\" });\n await this.destroyApp({ ...params, app: \"api\" });\n await this.destroyApp({ ...params, app: \"core\" });\n }\n };\n }\n\n private async destroyApp(params: IDestroyWithAppParams) {\n const projectSdk = await this.getProjectSdkService.execute();\n const ui = this.uiService;\n const stdio = this.stdioService;\n\n const { pulumiProcess } = await projectSdk.destroyApp(params);\n\n const getDestroyDuration = measureDuration();\n\n try {\n ui.info(`Destroying %s app...`, params.app);\n\n ui.emptyLine();\n\n pulumiProcess.stdout!.pipe(stdio.getStdout());\n pulumiProcess.stderr!.pipe(stdio.getStderr());\n await pulumiProcess;\n\n ui.success(`Destroyed in ${getDestroyDuration()}.`);\n } catch (e) {\n // If Pulumi error, we don't need to show the error message, as it will be shown by Pulumi.\n if (e instanceof PulumiError) {\n ui.error(\"Destroy failed, please check the details above.\");\n } else {\n ui.text(e.message);\n ui.error(\"Destroy failed, please check the details above.\");\n }\n\n throw e;\n }\n }\n}\n\nexport const destroyCommand = createImplementation({\n abstraction: CliCommandFactory,\n implementation: DestroyCommand,\n dependencies: [GetProjectSdkService, UiService, StdioService]\n});\n"],"names":["DestroyCommand","getProjectSdkService","uiService","stdioService","projectSdk","createBaseAppOptions","params","ui","stdio","pulumiProcess","getDestroyDuration","measureDuration","e","PulumiError","destroyCommand","createImplementation","CliCommandFactory","GetProjectSdkService","UiService","StdioService"],"mappings":";;;;;AA0BO,MAAMA;IACT,YACYC,oBAAoD,EACpDC,SAA8B,EAC9BC,YAAoC,CAC9C;aAHUF,oBAAoB,GAApBA;aACAC,SAAS,GAATA;aACAC,YAAY,GAAZA;IACT;IAEH,MAAM,UAA+E;QACjF,MAAMC,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;QAE1D,OAAO;YACH,MAAM;YACN,aAAa;YACb,UAAU;gBACN;gBACA;gBACA;gBACA;aACH;YACD,QAAQ;gBACJ;oBACI,MAAM;oBACN,aAAa;oBACb,MAAM;gBACV;aACH;YACD,SAASC,qBAAqBD;YAC9B,SAAS,OAAOE;gBACZ,IAAI,SAASA,QACT,OAAO,IAAI,CAAC,UAAU,CAACA;gBAI3B,MAAM,IAAI,CAAC,UAAU,CAAC;oBAAE,GAAGA,MAAM;oBAAE,KAAK;gBAAQ;gBAChD,MAAM,IAAI,CAAC,UAAU,CAAC;oBAAE,GAAGA,MAAM;oBAAE,KAAK;gBAAM;gBAC9C,MAAM,IAAI,CAAC,UAAU,CAAC;oBAAE,GAAGA,MAAM;oBAAE,KAAK;gBAAO;YACnD;QACJ;IACJ;IAEA,MAAc,WAAWA,MAA6B,EAAE;QACpD,MAAMF,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;QAC1D,MAAMG,KAAK,IAAI,CAAC,SAAS;QACzB,MAAMC,QAAQ,IAAI,CAAC,YAAY;QAE/B,MAAM,EAAEC,aAAa,EAAE,GAAG,MAAML,WAAW,UAAU,CAACE;QAEtD,MAAMI,qBAAqBC;QAE3B,IAAI;YACAJ,GAAG,IAAI,CAAC,wBAAwBD,OAAO,GAAG;YAE1CC,GAAG,SAAS;YAEZE,cAAc,MAAM,CAAE,IAAI,CAACD,MAAM,SAAS;YAC1CC,cAAc,MAAM,CAAE,IAAI,CAACD,MAAM,SAAS;YAC1C,MAAMC;YAENF,GAAG,OAAO,CAAC,CAAC,aAAa,EAAEG,qBAAqB,CAAC,CAAC;QACtD,EAAE,OAAOE,GAAG;YAER,IAAIA,aAAaC,aACbN,GAAG,KAAK,CAAC;iBACN;gBACHA,GAAG,IAAI,CAACK,EAAE,OAAO;gBACjBL,GAAG,KAAK,CAAC;YACb;YAEA,MAAMK;QACV;IACJ;AACJ;AAEO,MAAME,iBAAiBC,qBAAqB;IAC/C,aAAaC;IACb,gBAAgBhB;IAChB,cAAc;QAACiB;QAAsBC;QAAWC;KAAa;AACjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DestroyCommand.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DestroyCommand.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CliCommandFactory, GetProjectSdkService, UiService } from "../abstractions/index.js";
|
|
2
|
-
import { IBaseAppParams } from "../abstractions/features/types.js";
|
|
3
|
-
export interface IOutputCommandParams extends IBaseAppParams {
|
|
4
|
-
json?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class OutputCommand implements CliCommandFactory.Interface<IOutputCommandParams> {
|
|
7
|
-
private getProjectSdkService;
|
|
8
|
-
private uiService;
|
|
9
|
-
constructor(getProjectSdkService: GetProjectSdkService.Interface, uiService: UiService.Interface);
|
|
10
|
-
execute(): Promise<CliCommandFactory.CommandDefinition<IOutputCommandParams>>;
|
|
11
|
-
}
|
|
12
|
-
export declare const outputCommand: import("@webiny/di").Implementation<typeof OutputCommand>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { createImplementation } from "@webiny/di";
|
|
2
|
-
import { CliCommandFactory, GetProjectSdkService, UiService } from "../abstractions/index.js";
|
|
3
|
-
import { createBaseAppOptions } from "./common/index.js";
|
|
4
|
-
class OutputCommand {
|
|
5
|
-
constructor(getProjectSdkService, uiService){
|
|
6
|
-
this.getProjectSdkService = getProjectSdkService;
|
|
7
|
-
this.uiService = uiService;
|
|
8
|
-
}
|
|
9
|
-
async execute() {
|
|
10
|
-
const projectSdk = await this.getProjectSdkService.execute();
|
|
11
|
-
return {
|
|
12
|
-
name: "output",
|
|
13
|
-
description: "Prints Pulumi stack output for given project application and environment",
|
|
14
|
-
params: [
|
|
15
|
-
{
|
|
16
|
-
name: "app",
|
|
17
|
-
description: "Name of the app (core, admin, or api)",
|
|
18
|
-
type: "string",
|
|
19
|
-
required: true
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
options: [
|
|
23
|
-
...createBaseAppOptions(projectSdk, {
|
|
24
|
-
variant: {
|
|
25
|
-
description: "Variant of the app to watch"
|
|
26
|
-
}
|
|
27
|
-
}),
|
|
28
|
-
{
|
|
29
|
-
name: "json",
|
|
30
|
-
description: "Emit output as JSON",
|
|
31
|
-
type: "boolean"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
handler: async (params)=>{
|
|
35
|
-
const projectSdk = await this.getProjectSdkService.execute();
|
|
36
|
-
const ui = this.uiService;
|
|
37
|
-
const output = await projectSdk.getAppStackOutput(params.app);
|
|
38
|
-
if (params.json) return void ui.text(JSON.stringify(output, null, 2));
|
|
39
|
-
if (!output || 0 === Object.keys(output).length) return void ui.text("No output values found.");
|
|
40
|
-
const formatValue = (key, value, indent = 0)=>{
|
|
41
|
-
const indentStr = " ".repeat(indent);
|
|
42
|
-
if (null == value) return void ui.info(`${indentStr}${key}: (empty)`);
|
|
43
|
-
if ("object" != typeof value || Array.isArray(value)) ui.info(`${indentStr}${key}: ${JSON.stringify(value)}`);
|
|
44
|
-
else {
|
|
45
|
-
if (0 === indent) ui.emptyLine();
|
|
46
|
-
ui.textBold(`${indentStr}${key}:`);
|
|
47
|
-
for (const [k, v] of Object.entries(value))formatValue(k, v, indent + 1);
|
|
48
|
-
if (0 === indent) ui.emptyLine();
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
for (const [key, value] of Object.entries(output))formatValue(key, value, 0);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
const outputCommand = createImplementation({
|
|
57
|
-
abstraction: CliCommandFactory,
|
|
58
|
-
implementation: OutputCommand,
|
|
59
|
-
dependencies: [
|
|
60
|
-
GetProjectSdkService,
|
|
61
|
-
UiService
|
|
62
|
-
]
|
|
63
|
-
});
|
|
64
|
-
export { OutputCommand, outputCommand };
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=OutputCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/OutputCommand.js","sources":["../../src/features/OutputCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { CliCommandFactory, GetProjectSdkService, UiService } from \"~/abstractions/index.js\";\nimport { IBaseAppParams } from \"~/abstractions/features/types.js\";\nimport { createBaseAppOptions } from \"~/features/common/index.js\";\n\nexport interface IOutputCommandParams extends IBaseAppParams {\n json?: boolean;\n}\n\nexport class OutputCommand implements CliCommandFactory.Interface<IOutputCommandParams> {\n constructor(\n private getProjectSdkService: GetProjectSdkService.Interface,\n private uiService: UiService.Interface\n ) {}\n\n async execute(): Promise<CliCommandFactory.CommandDefinition<IOutputCommandParams>> {\n const projectSdk = await this.getProjectSdkService.execute();\n\n return {\n name: \"output\",\n description: \"Prints Pulumi stack output for given project application and environment\",\n params: [\n {\n name: \"app\",\n description: \"Name of the app (core, admin, or api)\",\n type: \"string\",\n required: true\n }\n ],\n options: [\n ...createBaseAppOptions(projectSdk, {\n variant: {\n description: \"Variant of the app to watch\"\n }\n }),\n {\n name: \"json\",\n description: \"Emit output as JSON\",\n type: \"boolean\"\n }\n ],\n handler: async (params: IOutputCommandParams) => {\n const projectSdk = await this.getProjectSdkService.execute();\n const ui = this.uiService;\n\n const output = await projectSdk.getAppStackOutput(params.app);\n if (params.json) {\n ui.text(JSON.stringify(output, null, 2));\n return;\n }\n\n // Nice indentation for console output.\n if (!output || Object.keys(output).length === 0) {\n ui.text(\"No output values found.\");\n return;\n }\n\n // Format and display output\n const formatValue = (key: string, value: any, indent: number = 0): void => {\n const indentStr = \" \".repeat(indent);\n\n if (value === null || value === undefined) {\n ui.info(`${indentStr}${key}: (empty)`);\n return;\n }\n\n if (typeof value === \"object\" && !Array.isArray(value)) {\n if (indent === 0) {\n ui.emptyLine();\n }\n ui.textBold(`${indentStr}${key}:`);\n for (const [k, v] of Object.entries(value)) {\n formatValue(k, v, indent + 1);\n }\n if (indent === 0) {\n ui.emptyLine();\n }\n } else {\n ui.info(`${indentStr}${key}: ${JSON.stringify(value)}`);\n }\n };\n\n for (const [key, value] of Object.entries(output)) {\n formatValue(key, value, 0);\n }\n }\n };\n }\n}\n\nexport const outputCommand = createImplementation({\n abstraction: CliCommandFactory,\n implementation: OutputCommand,\n dependencies: [GetProjectSdkService, UiService]\n});\n"],"names":["OutputCommand","getProjectSdkService","uiService","projectSdk","createBaseAppOptions","params","ui","output","JSON","Object","formatValue","key","value","indent","indentStr","Array","k","v","outputCommand","createImplementation","CliCommandFactory","GetProjectSdkService","UiService"],"mappings":";;;AASO,MAAMA;IACT,YACYC,oBAAoD,EACpDC,SAA8B,CACxC;aAFUD,oBAAoB,GAApBA;aACAC,SAAS,GAATA;IACT;IAEH,MAAM,UAA8E;QAChF,MAAMC,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;QAE1D,OAAO;YACH,MAAM;YACN,aAAa;YACb,QAAQ;gBACJ;oBACI,MAAM;oBACN,aAAa;oBACb,MAAM;oBACN,UAAU;gBACd;aACH;YACD,SAAS;mBACFC,qBAAqBD,YAAY;oBAChC,SAAS;wBACL,aAAa;oBACjB;gBACJ;gBACA;oBACI,MAAM;oBACN,aAAa;oBACb,MAAM;gBACV;aACH;YACD,SAAS,OAAOE;gBACZ,MAAMF,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;gBAC1D,MAAMG,KAAK,IAAI,CAAC,SAAS;gBAEzB,MAAMC,SAAS,MAAMJ,WAAW,iBAAiB,CAACE,OAAO,GAAG;gBAC5D,IAAIA,OAAO,IAAI,EAAE,YACbC,GAAG,IAAI,CAACE,KAAK,SAAS,CAACD,QAAQ,MAAM;gBAKzC,IAAI,CAACA,UAAUE,AAA+B,MAA/BA,OAAO,IAAI,CAACF,QAAQ,MAAM,EAAQ,YAC7CD,GAAG,IAAI,CAAC;gBAKZ,MAAMI,cAAc,CAACC,KAAaC,OAAYC,SAAiB,CAAC;oBAC5D,MAAMC,YAAY,KAAK,MAAM,CAACD;oBAE9B,IAAID,QAAAA,OAAuC,YACvCN,GAAG,IAAI,CAAC,GAAGQ,YAAYH,IAAI,SAAS,CAAC;oBAIzC,IAAI,AAAiB,YAAjB,OAAOC,SAAuBG,MAAM,OAAO,CAACH,QAY5CN,GAAG,IAAI,CAAC,GAAGQ,YAAYH,IAAI,EAAE,EAAEH,KAAK,SAAS,CAACI,QAAQ;yBAZF;wBACpD,IAAIC,AAAW,MAAXA,QACAP,GAAG,SAAS;wBAEhBA,GAAG,QAAQ,CAAC,GAAGQ,YAAYH,IAAI,CAAC,CAAC;wBACjC,KAAK,MAAM,CAACK,GAAGC,EAAE,IAAIR,OAAO,OAAO,CAACG,OAChCF,YAAYM,GAAGC,GAAGJ,SAAS;wBAE/B,IAAIA,AAAW,MAAXA,QACAP,GAAG,SAAS;oBAEpB;gBAGJ;gBAEA,KAAK,MAAM,CAACK,KAAKC,MAAM,IAAIH,OAAO,OAAO,CAACF,QACtCG,YAAYC,KAAKC,OAAO;YAEhC;QACJ;IACJ;AACJ;AAEO,MAAMM,gBAAgBC,qBAAqB;IAC9C,aAAaC;IACb,gBAAgBpB;IAChB,cAAc;QAACqB;QAAsBC;KAAU;AACnD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CliCommandFactory, GetProjectSdkService, StdioService, UiService } from "../../abstractions/index.js";
|
|
2
|
-
import { IBaseAppParams } from "../../abstractions/features/types.js";
|
|
3
|
-
export interface IPulumiCommandParams extends IBaseAppParams {
|
|
4
|
-
command: string[];
|
|
5
|
-
}
|
|
6
|
-
export declare class PulumiCommand implements CliCommandFactory.Interface<IPulumiCommandParams> {
|
|
7
|
-
private getProjectSdkService;
|
|
8
|
-
private uiService;
|
|
9
|
-
private stdioService;
|
|
10
|
-
constructor(getProjectSdkService: GetProjectSdkService.Interface, uiService: UiService.Interface, stdioService: StdioService.Interface);
|
|
11
|
-
execute(): Promise<CliCommandFactory.CommandDefinition<IPulumiCommandParams>>;
|
|
12
|
-
}
|
|
13
|
-
export declare const pulumiCommand: import("@webiny/di").Implementation<typeof PulumiCommand>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { createImplementation } from "@webiny/di";
|
|
2
|
-
import { CliCommandFactory, GetProjectSdkService, StdioService, UiService } from "../../abstractions/index.js";
|
|
3
|
-
import { ManuallyReportedError } from "../../utils/ManuallyReportedError.js";
|
|
4
|
-
import { createBaseAppOptions } from "../common/index.js";
|
|
5
|
-
class PulumiCommand {
|
|
6
|
-
constructor(getProjectSdkService, uiService, stdioService){
|
|
7
|
-
this.getProjectSdkService = getProjectSdkService;
|
|
8
|
-
this.uiService = uiService;
|
|
9
|
-
this.stdioService = stdioService;
|
|
10
|
-
}
|
|
11
|
-
async execute() {
|
|
12
|
-
const projectSdk = await this.getProjectSdkService.execute();
|
|
13
|
-
return {
|
|
14
|
-
name: "pulumi",
|
|
15
|
-
description: 'Runs a Pulumi command in the provided project application folder. Note: make sure to use "--" before the actual Pulumi command',
|
|
16
|
-
examples: [
|
|
17
|
-
"$0 pulumi api --env dev -- config set foo bar --secret"
|
|
18
|
-
],
|
|
19
|
-
params: [
|
|
20
|
-
{
|
|
21
|
-
name: "app",
|
|
22
|
-
description: "Name of the app (core, admin, or api)",
|
|
23
|
-
type: "string",
|
|
24
|
-
required: true
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
options: createBaseAppOptions(projectSdk),
|
|
28
|
-
handler: async (params)=>{
|
|
29
|
-
const projectSdk = await this.getProjectSdkService.execute();
|
|
30
|
-
try {
|
|
31
|
-
const [, ...command] = params._ || [];
|
|
32
|
-
const { pulumiProcess } = await projectSdk.runPulumiCommand({
|
|
33
|
-
...params,
|
|
34
|
-
command
|
|
35
|
-
});
|
|
36
|
-
pulumiProcess.stdin?.pipe(this.stdioService.getStdin());
|
|
37
|
-
pulumiProcess.stdout?.pipe(this.stdioService.getStdout());
|
|
38
|
-
pulumiProcess.stderr?.pipe(this.stdioService.getStderr());
|
|
39
|
-
} catch (error) {
|
|
40
|
-
throw ManuallyReportedError.from(error);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const pulumiCommand = createImplementation({
|
|
47
|
-
abstraction: CliCommandFactory,
|
|
48
|
-
implementation: PulumiCommand,
|
|
49
|
-
dependencies: [
|
|
50
|
-
GetProjectSdkService,
|
|
51
|
-
UiService,
|
|
52
|
-
StdioService
|
|
53
|
-
]
|
|
54
|
-
});
|
|
55
|
-
export { PulumiCommand, pulumiCommand };
|
|
56
|
-
|
|
57
|
-
//# sourceMappingURL=PulumiCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/PulumiCommand/PulumiCommand.js","sources":["../../../src/features/PulumiCommand/PulumiCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n CliCommandFactory,\n GetProjectSdkService,\n StdioService,\n UiService\n} from \"~/abstractions/index.js\";\nimport { ManuallyReportedError } from \"~/utils/ManuallyReportedError.js\";\nimport { IBaseAppParams } from \"~/abstractions/features/types.js\";\nimport { createBaseAppOptions } from \"~/features/common/index.js\";\n\nexport interface IPulumiCommandParams extends IBaseAppParams {\n command: string[];\n}\n\nexport class PulumiCommand implements CliCommandFactory.Interface<IPulumiCommandParams> {\n constructor(\n private getProjectSdkService: GetProjectSdkService.Interface,\n private uiService: UiService.Interface,\n private stdioService: StdioService.Interface\n ) {}\n\n async execute(): Promise<CliCommandFactory.CommandDefinition<IPulumiCommandParams>> {\n const projectSdk = await this.getProjectSdkService.execute();\n\n return {\n name: \"pulumi\",\n description:\n 'Runs a Pulumi command in the provided project application folder. Note: make sure to use \"--\" before the actual Pulumi command',\n examples: [\"$0 pulumi api --env dev -- config set foo bar --secret\"],\n params: [\n {\n name: \"app\",\n description: \"Name of the app (core, admin, or api)\",\n type: \"string\",\n required: true\n }\n ],\n options: createBaseAppOptions(projectSdk),\n handler: async (params: IPulumiCommandParams) => {\n const projectSdk = await this.getProjectSdkService.execute();\n\n try {\n const [, ...command] = params._ || [];\n\n const { pulumiProcess } = await projectSdk.runPulumiCommand({\n ...params,\n command\n });\n\n pulumiProcess.stdin?.pipe(this.stdioService.getStdin());\n pulumiProcess.stdout?.pipe(this.stdioService.getStdout());\n pulumiProcess.stderr?.pipe(this.stdioService.getStderr());\n } catch (error) {\n throw ManuallyReportedError.from(error);\n }\n }\n };\n }\n}\n\nexport const pulumiCommand = createImplementation({\n abstraction: CliCommandFactory,\n implementation: PulumiCommand,\n dependencies: [GetProjectSdkService, UiService, StdioService]\n});\n"],"names":["PulumiCommand","getProjectSdkService","uiService","stdioService","projectSdk","createBaseAppOptions","params","command","pulumiProcess","error","ManuallyReportedError","pulumiCommand","createImplementation","CliCommandFactory","GetProjectSdkService","UiService","StdioService"],"mappings":";;;;AAeO,MAAMA;IACT,YACYC,oBAAoD,EACpDC,SAA8B,EAC9BC,YAAoC,CAC9C;aAHUF,oBAAoB,GAApBA;aACAC,SAAS,GAATA;aACAC,YAAY,GAAZA;IACT;IAEH,MAAM,UAA8E;QAChF,MAAMC,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;QAE1D,OAAO;YACH,MAAM;YACN,aACI;YACJ,UAAU;gBAAC;aAAyD;YACpE,QAAQ;gBACJ;oBACI,MAAM;oBACN,aAAa;oBACb,MAAM;oBACN,UAAU;gBACd;aACH;YACD,SAASC,qBAAqBD;YAC9B,SAAS,OAAOE;gBACZ,MAAMF,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;gBAE1D,IAAI;oBACA,MAAM,GAAG,GAAGG,QAAQ,GAAGD,OAAO,CAAC,IAAI,EAAE;oBAErC,MAAM,EAAEE,aAAa,EAAE,GAAG,MAAMJ,WAAW,gBAAgB,CAAC;wBACxD,GAAGE,MAAM;wBACTC;oBACJ;oBAEAC,cAAc,KAAK,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,QAAQ;oBACpDA,cAAc,MAAM,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,SAAS;oBACtDA,cAAc,MAAM,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,SAAS;gBAC1D,EAAE,OAAOC,OAAO;oBACZ,MAAMC,sBAAsB,IAAI,CAACD;gBACrC;YACJ;QACJ;IACJ;AACJ;AAEO,MAAME,gBAAgBC,qBAAqB;IAC9C,aAAaC;IACb,gBAAgBb;IAChB,cAAc;QAACc;QAAsBC;QAAWC;KAAa;AACjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./PulumiCommand.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./PulumiCommand.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CliCommandFactory, GetProjectSdkService, StdioService } from "../../abstractions/index.js";
|
|
2
|
-
import { IBaseAppParams } from "../../abstractions/features/types.js";
|
|
3
|
-
export interface IRefreshCommandParams extends IBaseAppParams {
|
|
4
|
-
command: string[];
|
|
5
|
-
}
|
|
6
|
-
export declare class RefreshCommand implements CliCommandFactory.Interface<IRefreshCommandParams> {
|
|
7
|
-
private getProjectSdkService;
|
|
8
|
-
private stdioService;
|
|
9
|
-
constructor(getProjectSdkService: GetProjectSdkService.Interface, stdioService: StdioService.Interface);
|
|
10
|
-
execute(): Promise<CliCommandFactory.CommandDefinition<IRefreshCommandParams>>;
|
|
11
|
-
}
|
|
12
|
-
export declare const refreshCommand: import("@webiny/di").Implementation<typeof RefreshCommand>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { createImplementation } from "@webiny/di";
|
|
2
|
-
import { CliCommandFactory, GetProjectSdkService, StdioService } from "../../abstractions/index.js";
|
|
3
|
-
import { ManuallyReportedError } from "../../utils/ManuallyReportedError.js";
|
|
4
|
-
import { createBaseAppOptions } from "../common/index.js";
|
|
5
|
-
class RefreshCommand {
|
|
6
|
-
constructor(getProjectSdkService, stdioService){
|
|
7
|
-
this.getProjectSdkService = getProjectSdkService;
|
|
8
|
-
this.stdioService = stdioService;
|
|
9
|
-
}
|
|
10
|
-
async execute() {
|
|
11
|
-
const projectSdk = await this.getProjectSdkService.execute();
|
|
12
|
-
return {
|
|
13
|
-
name: "refresh",
|
|
14
|
-
description: "Refreshes Pulumi state for given project application and environment",
|
|
15
|
-
examples: [
|
|
16
|
-
"$0 refresh api --env dev -- config set foo bar --secret"
|
|
17
|
-
],
|
|
18
|
-
params: [
|
|
19
|
-
{
|
|
20
|
-
name: "app",
|
|
21
|
-
description: "Name of the app (core, admin, or api)",
|
|
22
|
-
type: "string",
|
|
23
|
-
required: true
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
options: createBaseAppOptions(projectSdk),
|
|
27
|
-
handler: async (params)=>{
|
|
28
|
-
const projectSdk = await this.getProjectSdkService.execute();
|
|
29
|
-
try {
|
|
30
|
-
const { pulumiProcess } = await projectSdk.refreshApp(params);
|
|
31
|
-
pulumiProcess.stdin?.pipe(this.stdioService.getStdin());
|
|
32
|
-
pulumiProcess.stdout?.pipe(this.stdioService.getStdout());
|
|
33
|
-
pulumiProcess.stderr?.pipe(this.stdioService.getStderr());
|
|
34
|
-
} catch (error) {
|
|
35
|
-
throw ManuallyReportedError.from(error);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
const refreshCommand = createImplementation({
|
|
42
|
-
abstraction: CliCommandFactory,
|
|
43
|
-
implementation: RefreshCommand,
|
|
44
|
-
dependencies: [
|
|
45
|
-
GetProjectSdkService,
|
|
46
|
-
StdioService
|
|
47
|
-
]
|
|
48
|
-
});
|
|
49
|
-
export { RefreshCommand, refreshCommand };
|
|
50
|
-
|
|
51
|
-
//# sourceMappingURL=RefreshCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features/RefreshCommand/RefreshCommand.js","sources":["../../../src/features/RefreshCommand/RefreshCommand.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { CliCommandFactory, GetProjectSdkService, StdioService } from \"~/abstractions/index.js\";\nimport { ManuallyReportedError } from \"~/utils/ManuallyReportedError.js\";\nimport { IBaseAppParams } from \"~/abstractions/features/types.js\";\nimport { createBaseAppOptions } from \"~/features/common/index.js\";\n\nexport interface IRefreshCommandParams extends IBaseAppParams {\n command: string[];\n}\n\nexport class RefreshCommand implements CliCommandFactory.Interface<IRefreshCommandParams> {\n constructor(\n private getProjectSdkService: GetProjectSdkService.Interface,\n private stdioService: StdioService.Interface\n ) {}\n\n async execute(): Promise<CliCommandFactory.CommandDefinition<IRefreshCommandParams>> {\n const projectSdk = await this.getProjectSdkService.execute();\n\n return {\n name: \"refresh\",\n description: \"Refreshes Pulumi state for given project application and environment\",\n examples: [\"$0 refresh api --env dev -- config set foo bar --secret\"],\n params: [\n {\n name: \"app\",\n description: \"Name of the app (core, admin, or api)\",\n type: \"string\",\n required: true\n }\n ],\n options: createBaseAppOptions(projectSdk),\n handler: async (params: IRefreshCommandParams) => {\n const projectSdk = await this.getProjectSdkService.execute();\n\n try {\n const { pulumiProcess } = await projectSdk.refreshApp(params);\n pulumiProcess.stdin?.pipe(this.stdioService.getStdin());\n pulumiProcess.stdout?.pipe(this.stdioService.getStdout());\n pulumiProcess.stderr?.pipe(this.stdioService.getStderr());\n } catch (error) {\n throw ManuallyReportedError.from(error);\n }\n }\n };\n }\n}\n\nexport const refreshCommand = createImplementation({\n abstraction: CliCommandFactory,\n implementation: RefreshCommand,\n dependencies: [GetProjectSdkService, StdioService]\n});\n"],"names":["RefreshCommand","getProjectSdkService","stdioService","projectSdk","createBaseAppOptions","params","pulumiProcess","error","ManuallyReportedError","refreshCommand","createImplementation","CliCommandFactory","GetProjectSdkService","StdioService"],"mappings":";;;;AAUO,MAAMA;IACT,YACYC,oBAAoD,EACpDC,YAAoC,CAC9C;aAFUD,oBAAoB,GAApBA;aACAC,YAAY,GAAZA;IACT;IAEH,MAAM,UAA+E;QACjF,MAAMC,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;QAE1D,OAAO;YACH,MAAM;YACN,aAAa;YACb,UAAU;gBAAC;aAA0D;YACrE,QAAQ;gBACJ;oBACI,MAAM;oBACN,aAAa;oBACb,MAAM;oBACN,UAAU;gBACd;aACH;YACD,SAASC,qBAAqBD;YAC9B,SAAS,OAAOE;gBACZ,MAAMF,aAAa,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO;gBAE1D,IAAI;oBACA,MAAM,EAAEG,aAAa,EAAE,GAAG,MAAMH,WAAW,UAAU,CAACE;oBACtDC,cAAc,KAAK,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,QAAQ;oBACpDA,cAAc,MAAM,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,SAAS;oBACtDA,cAAc,MAAM,EAAE,KAAK,IAAI,CAAC,YAAY,CAAC,SAAS;gBAC1D,EAAE,OAAOC,OAAO;oBACZ,MAAMC,sBAAsB,IAAI,CAACD;gBACrC;YACJ;QACJ;IACJ;AACJ;AAEO,MAAME,iBAAiBC,qBAAqB;IAC/C,aAAaC;IACb,gBAAgBX;IAChB,cAAc;QAACY;QAAsBC;KAAa;AACtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./RefreshCommand.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./RefreshCommand.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CliCommandFactory, GetProjectSdkService, StdioService, UiService } from "../../abstractions/index.js";
|
|
2
|
-
import { IBaseAppParams } from "../../abstractions/features/types.js";
|
|
3
|
-
export type IWatchCommandParams = IBaseAppParams;
|
|
4
|
-
export declare class WatchCommand implements CliCommandFactory.Interface<IWatchCommandParams> {
|
|
5
|
-
private getProjectSdkService;
|
|
6
|
-
private stdioService;
|
|
7
|
-
private uiService;
|
|
8
|
-
constructor(getProjectSdkService: GetProjectSdkService.Interface, stdioService: StdioService.Interface, uiService: UiService.Interface);
|
|
9
|
-
execute(): Promise<CliCommandFactory.CommandDefinition<IWatchCommandParams>>;
|
|
10
|
-
}
|
|
11
|
-
export declare const watchCommand: import("@webiny/di").Implementation<typeof WatchCommand>;
|