Unverified Commit 93ee3589 authored by Hong Minhee's avatar Hong Minhee
Browse files

Shell completions

parent 8fb0fc25
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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",
+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" };
@@ -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) {