From 45a3b3d41e3637f49b5bb200de66aebd0d5f0a2f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 30 Mar 2023 20:27:12 +0900 Subject: feat(nuldoc): add `nuldoc new` command --- nuldoc-src/main.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nuldoc-src/main.ts') diff --git a/nuldoc-src/main.ts b/nuldoc-src/main.ts index 1635d76..8598d80 100644 --- a/nuldoc-src/main.ts +++ b/nuldoc-src/main.ts @@ -1,4 +1,5 @@ import { runBuildCommand } from "./commands/build.ts"; +import { runNewCommand } from "./commands/new.ts"; import { runServeCommand } from "./commands/serve.ts"; import { config } from "./config.ts"; @@ -6,6 +7,8 @@ if (import.meta.main) { const command = Deno.args[0] ?? "build"; if (command === "build") { await runBuildCommand(config); + } else if (command === "new") { + runNewCommand(config); } else if (command === "serve") { runServeCommand(config); } else { -- cgit v1.2.3-70-g09d2