@agilecustoms/envctl 0.35.0 → 0.35.1

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.
@@ -61,6 +61,11 @@ export class ProcessRunner {
61
61
  reject(new ProcessException(code, errorBuffer));
62
62
  }
63
63
  });
64
+ child.on('error', (err) => {
65
+ rl.close();
66
+ const code = err?.errno ?? 1;
67
+ reject(new ProcessException(code, err.message));
68
+ });
64
69
  });
65
70
  }
66
71
  }
@@ -194,10 +194,9 @@ export class EnvCtl {
194
194
  }
195
195
  const { ephemeral, vars } = env;
196
196
  const envTerraform = { key, ephemeral, args: tfArgs, vars };
197
- console.log('Destroying env resources');
198
197
  await this.terraformAdapter.destroy(envTerraform, force, cwd);
199
198
  await this.envApi.delete(env);
200
- console.log('Please wait for ~15 sec before you can create env with same name');
199
+ console.log('Please wait for ~30 sec before you can create env with same name');
201
200
  }
202
201
  async get(key) {
203
202
  console.log(`Retrieve env ${key}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agilecustoms/envctl",
3
3
  "description": "node.js CLI client for manage environments",
4
- "version": "0.35.0",
4
+ "version": "0.35.1",
5
5
  "author": "Alex Chekulaev",
6
6
  "type": "module",
7
7
  "bin": {