Skip to content

Commit

Permalink
Register completions command to aid with shell auto complete
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Sep 30, 2023
1 parent bfdba2a commit 829e0c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
// @deno-types="../scripts/dist/fabric-template-generator.d.ts"
import * as generator from "../scripts/dist/fabric-template-generator.js";
import { parse as parseXml } from "https://deno.land/x/[email protected]/mod.ts";
import { Command } from "https://deno.land/x/[email protected]/command/mod.ts";
import {
Command,
CompletionsCommand,
} from "https://deno.land/x/[email protected]/command/mod.ts";
import { initCommand } from "./commands/init.ts";
import { upgradeCommand } from "./commands/upgrade.ts";

Expand All @@ -24,7 +27,8 @@ if (import.meta.main) {
Deno.exit(0);
})
.command("init", initCommand())
.command("upgrade", upgradeCommand());
.command("upgrade", upgradeCommand())
.command("completions", new CompletionsCommand());

await cmd.parse();
}

0 comments on commit 829e0c2

Please sign in to comment.