diff options
Diffstat (limited to 'vhosts/blog/nuldoc-src/main.ts')
| -rw-r--r-- | vhosts/blog/nuldoc-src/main.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vhosts/blog/nuldoc-src/main.ts b/vhosts/blog/nuldoc-src/main.ts new file mode 100644 index 00000000..8598d80c --- /dev/null +++ b/vhosts/blog/nuldoc-src/main.ts @@ -0,0 +1,17 @@ +import { runBuildCommand } from "./commands/build.ts"; +import { runNewCommand } from "./commands/new.ts"; +import { runServeCommand } from "./commands/serve.ts"; +import { config } from "./config.ts"; + +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}`); + } +} |
