Debian Codegraph @

integrations/commander/test/fixtures/options-default/expected.ts

raw symbols SCIP
1 // Autogenerated by @fig/complete-commander
2
3 const completionSpec: Fig.Spec = {
4 name: "command",
5 subcommands: [
6 {
7 name: "help",
8 description: "display help for command",
9 priority: 49,
10 args: { name: "command", isOptional: true, template: "help" },
11 },
12 ],
13 options: [
14 {
15 name: ["-c", "--color"],
16 description: "specify the color",
17 args: { name: "type", default: "blue" },
18 },
19 { name: ["-n", "--number"], args: { name: "type", default: "1" } },
20 { name: ["-s", "--string"], args: { name: "type", default: "hello" } },
21 { name: ["-b", "--bool"], args: { name: "type", default: "true" } },
22 { name: ["-a", "--arr"], args: { name: "type", default: "1,2,3" } },
23 { name: ["-o", "--obj"], args: { name: "type" } },
24 { name: ["-m", "--map"], args: { name: "type" } },
25 {
26 name: ["-h", "--help"],
27 description: "display help for command",
28 priority: 49,
29 },
30 ],
31 };
32
33 export default completionSpec;
34