Debian Codegraph @

integrations/commander/test/fixtures/custom-command-class/expected.ts

raw symbols SCIP
1 // Autogenerated by @fig/complete-commander
2
3 const completionSpec: Fig.Spec = {
4 name: "program",
5 subcommands: [
6 {
7 name: "serve",
8 options: [
9 {
10 name: ["-t", "--trace"],
11 description: "display extra information when run command",
12 },
13 {
14 name: ["-p", "--port"],
15 description: "port number",
16 args: { name: "number" },
17 },
18 {
19 name: ["-h", "--help"],
20 description: "display help for command",
21 priority: 49,
22 },
23 ],
24 args: [{ name: "params", isOptional: true, isVariadic: true }],
25 },
26 {
27 name: "build",
28 options: [
29 {
30 name: ["-t", "--trace"],
31 description: "display extra information when run command",
32 },
33 {
34 name: ["-h", "--help"],
35 description: "display help for command",
36 priority: 49,
37 },
38 ],
39 args: [{ name: "target" }],
40 },
41 {
42 name: "help",
43 description: "display help for command",
44 priority: 49,
45 args: { name: "command", isOptional: true, template: "help" },
46 },
47 ],
48 options: [
49 { name: ["-v", "---verbose"] },
50 {
51 name: ["-h", "--help"],
52 description: "display help for command",
53 priority: 49,
54 },
55 ],
56 };
57
58 export default completionSpec;
59