@agilecustoms/envctl 0.28.0 → 0.28.2

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.
@@ -56,10 +56,10 @@ export class TerraformAdapter {
56
56
  printTime() {
57
57
  const now = new Date();
58
58
  const utc = now.toISOString();
59
- const est = now.toLocaleString('en-US', {
59
+ const edt = now.toLocaleString('en-US', {
60
60
  timeZone: 'America/New_York'
61
61
  });
62
- console.log(`\nTime EST: ${est}, UTC: ${utc}\n`);
62
+ console.log(`\nTime EDT: ${edt}, UTC: ${utc}\n`);
63
63
  }
64
64
  tfArgs(env, cwd) {
65
65
  const varDefs = this.getVarDefs(cwd);
@@ -26,8 +26,10 @@ export class EnvCtl {
26
26
  console.log(`Env ${key} does not exist`);
27
27
  return;
28
28
  }
29
+ console.log(`Env ${key} status: ${env.status}`);
30
+ const verb = env.status === EnvStatus.Deleting ? 'Scheduled for deletion' : 'Expires';
29
31
  const date = new Date(env.ttl * 1000);
30
- const expDateTime = date.toLocaleString(undefined, {
32
+ const formattedDate = date.toLocaleString(undefined, {
31
33
  month: 'short',
32
34
  day: '2-digit',
33
35
  hour: '2-digit',
@@ -35,7 +37,7 @@ export class EnvCtl {
35
37
  second: '2-digit',
36
38
  hour12: false,
37
39
  });
38
- console.log(`Env ${key} status: ${env.status}, expires at ${expDateTime}`);
40
+ console.log(`${verb} at ${formattedDate}`);
39
41
  if (env.kind) {
40
42
  const kind = this.cliHelper.getKind(cwd);
41
43
  if (env.kind !== kind) {
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.28.0",
4
+ "version": "0.28.2",
5
5
  "author": "Alex Chekulaev",
6
6
  "type": "module",
7
7
  "bin": {