diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-03-30 20:27:12 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-03-30 20:27:50 +0900 |
| commit | 45a3b3d41e3637f49b5bb200de66aebd0d5f0a2f (patch) | |
| tree | bfe40411a584f36ccce764f0f4bf305bb51fc6af /nuldoc-src/main.ts | |
| parent | c01083ef9e8d2e30eac2e44855d5e08b8e775eab (diff) | |
| download | blog.nsfisis.dev-45a3b3d41e3637f49b5bb200de66aebd0d5f0a2f.tar.gz blog.nsfisis.dev-45a3b3d41e3637f49b5bb200de66aebd0d5f0a2f.tar.zst blog.nsfisis.dev-45a3b3d41e3637f49b5bb200de66aebd0d5f0a2f.zip | |
feat(nuldoc): add `nuldoc new` command
Diffstat (limited to 'nuldoc-src/main.ts')
| -rw-r--r-- | nuldoc-src/main.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |
