Debian Codegraph @

integrations/commander/test/fixtures/hidden-command/command.ts

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