@agilecustoms/envctl 0.32.7 → 0.32.9

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.
@@ -195,12 +195,12 @@ export class EnvCtl {
195
195
  async destroy(tfArgs, force, cwd) {
196
196
  const key = this.terraformAdapter.getTerraformBackend(cwd).getKey();
197
197
  const env = await this.get(key);
198
- this.checkStatus(env);
199
198
  if (env.status === EnvStatus.Init) {
200
199
  console.log(`Env ${env.key} has no resources, nothing to destroy, call 'delete' command instead`);
201
200
  return;
202
201
  }
203
202
  if (!force) {
203
+ this.checkStatus(env);
204
204
  const kind = this.cliHelper.getKind(cwd);
205
205
  if (env.kind && env.kind !== kind) {
206
206
  throw new KnownException(`Env ${env.key} kind (dir-name): ${env.kind} - make sure you run destroy from the same directory`);
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.32.7",
4
+ "version": "0.32.9",
5
5
  "author": "Alex Chekulaev",
6
6
  "type": "module",
7
7
  "bin": {