@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
|
|
59
|
+
const edt = now.toLocaleString('en-US', {
|
|
60
60
|
timeZone: 'America/New_York'
|
|
61
61
|
});
|
|
62
|
-
console.log(`\nTime
|
|
62
|
+
console.log(`\nTime EDT: ${edt}, UTC: ${utc}\n`);
|
|
63
63
|
}
|
|
64
64
|
tfArgs(env, cwd) {
|
|
65
65
|
const varDefs = this.getVarDefs(cwd);
|
package/dist/service/EnvCtl.js
CHANGED
|
@@ -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
|
|
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(
|
|
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) {
|