Add maxmind license key (#12)

* Add MaxMindLicenseKey

* fix lint errors

* fix update
This commit is contained in:
Anders Gustafsson
2022-11-15 14:12:08 +01:00
committed by GitHub
parent 42a3109441
commit 02beda5a40
3 changed files with 31 additions and 26 deletions
@@ -17,7 +17,7 @@ module.exports = {
description: 'Show status for available testservers (s)',
hidden: false,
run: async (toolbox: GluegunMenuToolbox) => {
const { system, strings } = toolbox
const stacks = JSON.parse(strings.trim(await system.run(`aws cloudformation list-stacks`)));
@@ -45,14 +45,14 @@ module.exports = {
updated: '',
}
}
}
return Promise.resolve(null);
}));
const curratedStacks: Stack[] = teststacks.filter(Boolean);
const status = (status: string) => {
const status = (status: string) => {
switch(status) {
case 'NO_STATUS':
return `(${chalk.red.bold('?')})`;
@@ -78,10 +78,10 @@ module.exports = {
const timeSince = (date: number) => {
const now = Date.now();
var seconds = Math.floor((now - date) / 1000);
var interval = seconds / 31536000;
let seconds = Math.floor((now - date) / 1000);
let interval = seconds / 31536000;
if (interval > 1) {
return Math.floor(interval) + " years";
}