| 1 |
import commander from "commander"; |
| 2 |
import { addCompletionSpecCommand } from "../../../src"; |
| 3 |
|
| 4 |
const program = new commander.Command(); |
| 5 |
|
| 6 |
program.command("build").description("build web site for deployment"); |
| 7 |
|
| 8 |
program.command("deploy").description("deploy web site to production"); |
| 9 |
|
| 10 |
program |
| 11 |
.command("serve", { isDefault: true }) |
| 12 |
.description("launch web server") |
| 13 |
.option("-p,--port <port_number>", "web port"); |
| 14 |
|
| 15 |
addCompletionSpecCommand(program); |
| 16 |
program.parse(process.argv); |