Skip to main content
Module

x/pbkit/cli/pb/entrypoint.ts

Protobuf toolkit for modern web development
Go to Latest
File
import { Command, CompletionsCommand, HelpCommand,} from "https://deno.land/x/cliffy@v0.25.2/command/mod.ts";import decode from "./cmds/decode/index.ts";import devtools from "./cmds/devtools/index.ts";import gen from "./cmds/gen/index.ts";import lsp from "./cmds/lsp/index.ts";import vendor from "./cmds/vendor/index.ts";
const command = new Command();command .name("pb") .action(() => { command.showHelp(); Deno.exit(0); }) .command("completions", new CompletionsCommand()) .command("decode", decode) .command("devtools", devtools) .command("gen", gen) .command("lsp", lsp) .command("vendor", vendor) .command("help", new HelpCommand()) .parse(Deno.args);