@forge/cli
12.16.1-next.6-experimental-13a01c212.17.0-next.7
out/command-line/controller/tunnel-controller.js~
out/command-line/controller/tunnel-controller.jsModified+4−1
Index: package/out/command-line/controller/tunnel-controller.js
===================================================================
--- package/out/command-line/controller/tunnel-controller.js
+++ package/out/command-line/controller/tunnel-controller.js
@@ -9,20 +9,23 @@
tunnelView;
configFile;
cachedConfigService;
environmentClient;
- constructor(nodeTunnelService, tunnelView, configFile, cachedConfigService, environmentClient) {
+ devSpaceService;
+ constructor(nodeTunnelService, tunnelView, configFile, cachedConfigService, environmentClient, devSpaceService) {
this.nodeTunnelService = nodeTunnelService;
this.tunnelView = tunnelView;
this.configFile = configFile;
this.cachedConfigService = cachedConfigService;
this.environmentClient = environmentClient;
+ this.devSpaceService = devSpaceService;
}
async run(tunnelOptions) {
const options = await this.validateTunnelCommandOptions(tunnelOptions);
const envKey = tunnelOptions.environment || cli_shared_1.DEFAULT_ENVIRONMENT_OPTION;
this.tunnelView.preamble(envKey);
const { app: { id: appId }, services, modules } = await this.configFile.readConfig();
+ await this.devSpaceService.displayEnforcementWarningsIfNeeded(this.tunnelView.getLogger(), appId, 'tunnel');
const serviceWithTunnelConfigExists = services?.some((service) => service.containers?.some((container) => {
return !!container.tunnel;
}));
if (services && serviceWithTunnelConfigExists) {