Debian Codegraph @

integrations/commander/test/fixtures/generate-from-cli/expected.ts

raw symbols SCIP
1 // Autogenerated by @fig/complete-commander
2
3 const completionSpec: Fig.Spec = {
4 name: "command",
5 description: "example program for argument",
6 subcommands: [
7 {
8 name: "generateCompletionSpec",
9 description: "Generate a fig spec for the current program",
10 options: [
11 {
12 name: ["-h", "--help"],
13 description: "display help for command",
14 priority: 49,
15 },
16 ],
17 },
18 {
19 name: "remove",
20 description: "Remove user",
21 options: [
22 {
23 name: ["-h", "--help"],
24 description: "display help for command",
25 priority: 49,
26 },
27 ],
28 },
29 {
30 name: "help",
31 description: "display help for command",
32 priority: 49,
33 args: { name: "command", isOptional: true, template: "help" },
34 },
35 ],
36 options: [
37 { name: ["-V", "--version"], description: "output the version number" },
38 {
39 name: ["-h", "--help"],
40 description: "display help for command",
41 priority: 49,
42 },
43 ],
44 args: [
45 { name: "username", description: "user to login" },
46 {
47 name: "password",
48 description: "password for user, if required",
49 isOptional: true,
50 default: "no password given",
51 },
52 ],
53 };
54
55 export default completionSpec;
56