Loading cli/deno.json +5 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,11 @@ ".vscode", "scripts" ], "unstable": [ "fs", "kv", "temporal" ], "tasks": { "fedify-codegen": "cat ../vocab/vocab.ts > /dev/null || (deno run --allow-read --allow-write --check ../codegen/main.ts ../vocab/ ../runtime/ > ../vocab/vocab.ts && deno fmt ../vocab/vocab.ts && deno cache ../vocab/vocab.ts && deno check ../vocab/vocab.ts)", "generate-import-map": "deno run --allow-read --allow-write scripts/generate_import_map.ts", Loading cli/mod.ts +2 −1 Original line number Diff line number Diff line import { Command, HelpCommand } from "@cliffy/command"; import { Command, CompletionsCommand, HelpCommand } from "@cliffy/command"; import { configure, getConsoleSink } from "@logtape/logtape"; import { DEFAULT_CACHE_DIR, setCacheDir } from "./cache.ts"; import metadata from "./deno.json" with { type: "json" }; Loading Loading @@ -35,6 +35,7 @@ const command = new Command() }) .default("help") .command("lookup", lookup) .command("completions", new CompletionsCommand()) .command("help", new HelpCommand().global()); if (import.meta.main) { Loading Loading
cli/deno.json +5 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,11 @@ ".vscode", "scripts" ], "unstable": [ "fs", "kv", "temporal" ], "tasks": { "fedify-codegen": "cat ../vocab/vocab.ts > /dev/null || (deno run --allow-read --allow-write --check ../codegen/main.ts ../vocab/ ../runtime/ > ../vocab/vocab.ts && deno fmt ../vocab/vocab.ts && deno cache ../vocab/vocab.ts && deno check ../vocab/vocab.ts)", "generate-import-map": "deno run --allow-read --allow-write scripts/generate_import_map.ts", Loading
cli/mod.ts +2 −1 Original line number Diff line number Diff line import { Command, HelpCommand } from "@cliffy/command"; import { Command, CompletionsCommand, HelpCommand } from "@cliffy/command"; import { configure, getConsoleSink } from "@logtape/logtape"; import { DEFAULT_CACHE_DIR, setCacheDir } from "./cache.ts"; import metadata from "./deno.json" with { type: "json" }; Loading Loading @@ -35,6 +35,7 @@ const command = new Command() }) .default("help") .command("lookup", lookup) .command("completions", new CompletionsCommand()) .command("help", new HelpCommand().global()); if (import.meta.main) { Loading