From 674fe965550444db87edc7937ff6932e1a918d9d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 27 Jun 2025 23:39:31 +0900 Subject: feat(meta): rename vhosts/ directory to services/ --- services/blog/nuldoc-src/main.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 services/blog/nuldoc-src/main.ts (limited to 'services/blog/nuldoc-src/main.ts') diff --git a/services/blog/nuldoc-src/main.ts b/services/blog/nuldoc-src/main.ts new file mode 100644 index 00000000..af6acc2e --- /dev/null +++ b/services/blog/nuldoc-src/main.ts @@ -0,0 +1,19 @@ +import { runBuildCommand } from "./commands/build.ts"; +import { runNewCommand } from "./commands/new.ts"; +import { runServeCommand } from "./commands/serve.ts"; +import { getDefaultConfigPath, loadConfig } from "./config.ts"; + +const config = await loadConfig(getDefaultConfigPath()); + +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 { + console.error(`Unknown command: ${command}`); + } +} -- cgit v1.2.3-70-g09d2