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
commit8fe85fccf3881114202301ac986073564d5abd3f (patch)
treefc58511731fd77296e3f1df54478bb0208e5fcc5 /deno/tools/manage-vm.ts
parent42526fed6f86a3a3a352313078668fcc8b473a3b (diff)
downloadcrupest-8fe85fccf3881114202301ac986073564d5abd3f.tar.gz
crupest-8fe85fccf3881114202301ac986073564d5abd3f.tar.bz2
crupest-8fe85fccf3881114202301ac986073564d5abd3f.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.");