aboutsummaryrefslogtreecommitdiff
path: root/deno/tools/manage-vm.ts
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-06-14 01:21:11 +0800
committerYuqian Yang <crupest@crupest.life>2025-06-14 02:35:01 +0800
commit402ffc61bf2bd4e7de535e179a39325320e34d73 (patch)
treefc92c6a00cda4c71b814ddf0b8617068bfa010f7 /deno/tools/manage-vm.ts
parent7458e2e5779c072c63de632be8ce3c0dafc7c9fd (diff)
downloadcrupest-402ffc61bf2bd4e7de535e179a39325320e34d73.tar.gz
crupest-402ffc61bf2bd4e7de535e179a39325320e34d73.tar.bz2
crupest-402ffc61bf2bd4e7de535e179a39325320e34d73.zip
deno(mail-server): drop custom logger, use builtin console.
Diffstat (limited to 'deno/tools/manage-vm.ts')
-rw-r--r--deno/tools/manage-vm.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/deno/tools/manage-vm.ts b/deno/tools/manage-vm.ts
index a1388b1..bb985ce 100644
--- a/deno/tools/manage-vm.ts
+++ b/deno/tools/manage-vm.ts
@@ -1,9 +1,8 @@
-import os from "node:os"
+import os from "node:os";
import { join } from "@std/path";
// @ts-types="npm:@types/yargs"
import yargs from "yargs";
-
type ArchAliasMap = { [name: string]: string[] };
const arches = {
x86_64: ["x86_64", "amd64"],
@@ -13,9 +12,7 @@ type Arch = keyof typeof arches;
type GeneralArch = (typeof arches)[Arch][number];
function normalizeArch(generalName: GeneralArch): Arch {
- for (const [name, aliases] of Object.entries(
- arches as ArchAliasMap,
- )) {
+ for (const [name, aliases] of Object.entries(arches as ArchAliasMap)) {
if (aliases.includes(generalName)) return name as Arch;
}
throw Error("Unknown architecture name.");