aboutsummaryrefslogtreecommitdiff
path: root/deno/tools/manage-vm.ts
diff options
context:
space:
mode:
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.");