@agilecustoms/envctl 0.37.2 → 0.37.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.
@@ -135,7 +135,7 @@ export class TerraformAdapter {
135
135
  const keyValue = arg.slice(5);
136
136
  const eqIndex = keyValue.indexOf('=');
137
137
  if (eqIndex === -1) {
138
- console.log('terraform var argument is not in key=value format:', arg);
138
+ console.error('Terraform var argument is not in key=value format:', arg);
139
139
  return;
140
140
  }
141
141
  const key = keyValue.slice(0, eqIndex);
@@ -86,7 +86,7 @@ export class EnvService {
86
86
  }
87
87
  async lockTerraform(env, cwd, newEnv = false) {
88
88
  const config = this.localStateService.load(cwd);
89
- console.log('validate terraform.tfstate file');
89
+ console.log('Validate terraform.tfstate file');
90
90
  const stateFileContent = this.terraformAdapter.getTerraformBackend(cwd).validateAndGetStateFileContent();
91
91
  const stateHash = this.localStateService.hash(stateFileContent);
92
92
  if (config.stateHash !== stateHash || newEnv) {
@@ -31,16 +31,16 @@ export class LocalStateService {
31
31
  this.config = config;
32
32
  return;
33
33
  }
34
- console.log('local state file version mismatch, re-initializing');
34
+ console.log('Local state file version mismatch, re-initializing');
35
35
  this.createEmptyConfig(filePath);
36
36
  }
37
37
  load(cwd) {
38
38
  if (this.config)
39
39
  return this.config;
40
- console.log('load local state config');
40
+ console.log('Load local state config');
41
41
  const filePath = this.filePath(cwd);
42
42
  if (!fs.existsSync(filePath)) {
43
- console.warn('local state file does not exist, must have been accidentally deleted, re-initializing');
43
+ console.warn('Local state file does not exist, must have been accidentally deleted, re-initializing');
44
44
  return this.createEmptyConfig(filePath);
45
45
  }
46
46
  const data = fs.readFileSync(filePath, 'utf-8');
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.37.2",
4
+ "version": "0.37.3",
5
5
  "author": "Alex Chekulaev",
6
6
  "type": "module",
7
7
  "engines": {