Debian Codegraph @

merge/test/fixtures/autocomplete-tools-cli/new.ts

raw symbols SCIP
1 // Autogenerated by @fig/complete-commander
2
3 const completionSpec: Fig.Spec = {
4 name: "@withfig/autocomplete-tools",
5 description: "Dev tools for fig's autocomplete",
6 subcommands: [
7 {
8 name: "init",
9 description: "initialize fig custom spec boilerplate in current directory",
10 options: [
11 {
12 name: ["-h", "--help"],
13 description: "display help for command",
14 priority: 49,
15 },
16 ],
17 },
18 {
19 name: "create-spec",
20 description: "create spec with given name",
21 options: [
22 {
23 name: ["-h", "--help"],
24 description: "display help for command",
25 priority: 49,
26 },
27 ],
28 args: [{ name: "name", isOptional: true }],
29 },
30 {
31 name: "compile",
32 description: "compile specs in the current directory",
33 options: [
34 {
35 name: ["-w", "--watch"],
36 description: "Watch files and re-compile on change",
37 },
38 {
39 name: ["-h", "--help"],
40 description: "display help for command",
41 priority: 49,
42 },
43 ],
44 },
45 {
46 name: "dev",
47 description: "watch for changes and compile specs",
48 options: [
49 {
50 name: ["-h", "--help"],
51 description: "display help for command",
52 priority: 49,
53 },
54 ],
55 },
56 {
57 name: "merge",
58 description: "deep merge new spec into old spec",
59 options: [
60 {
61 name: ["-n", "--new-file"],
62 description: "Create a new spec file instead of updating the old one",
63 args: { name: "path" },
64 },
65 {
66 name: ["-i", "--ignore-props"],
67 description: "The props that should always be overridden.",
68 args: { name: "props" },
69 },
70 {
71 name: ["--ignore-command-props"],
72 description: "The command props that should always be overridden.",
73 args: { name: "props" },
74 },
75 {
76 name: ["--ignore-option-props"],
77 description: "The option props that should always be overridden.",
78 args: { name: "props" },
79 },
80 {
81 name: ["--ignore-arg-props"],
82 description: "The arg props that should always be overridden.",
83 args: { name: "props" },
84 },
85 {
86 name: ["-p", "--preset"],
87 description: "Use a preset",
88 args: {
89 name: "name",
90 suggestions: ["commander", "oclif", "cobra", "clap", "swift-argument-parser"],
91 },
92 },
93 {
94 name: ["-h", "--help"],
95 description: "display help for command",
96 priority: 49,
97 },
98 ],
99 args: [{ name: "oldspec" }, { name: "newspec" }],
100 },
101 {
102 name: "version",
103 subcommands: [
104 {
105 name: "add-diff",
106 description: "generate version diff from new spec and add into old spec",
107 options: [
108 {
109 name: ["-n", "--new-path"],
110 description: "Create a new spec folder instead of overwriting the old one",
111 args: { name: "path" },
112 },
113 {
114 name: ["--use-minor-base"],
115 description: "Create a new version file per minor version",
116 },
117 {
118 name: ["-h", "--help"],
119 description: "display help for command",
120 priority: 49,
121 },
122 ],
123 args: [{ name: "specName" }, { name: "newSpecFile" }, { name: "diffVersion" }],
124 },
125 {
126 name: "init-spec",
127 description: "generate versioned spec in folder specified by path",
128 options: [
129 {
130 name: ["-h", "--help"],
131 description: "display help for command",
132 priority: 49,
133 },
134 ],
135 args: [{ name: "path" }],
136 },
137 {
138 name: "precompute-specs",
139 description:
140 "[Unimplemented] Precompute versioned specs before publishing the specs repo (unimplemented)",
141 options: [
142 {
143 name: ["-h", "--help"],
144 description: "display help for command",
145 priority: 49,
146 },
147 ],
148 args: [{ name: "files", isVariadic: true }],
149 },
150 {
151 name: "help",
152 description: "display help for command",
153 priority: 49,
154 args: { name: "command", isOptional: true },
155 },
156 ],
157 options: [
158 {
159 name: ["-h", "--help"],
160 description: "display help for command",
161 priority: 49,
162 },
163 ],
164 },
165 {
166 name: "help",
167 description: "display help for command",
168 priority: 49,
169 args: { name: "command", isOptional: true },
170 },
171 ],
172 options: [
173 { name: ["-V", "--version"], description: "output the version number" },
174 {
175 name: ["-h", "--help"],
176 description: "display help for command",
177 priority: 49,
178 },
179 ],
180 };
181
182 export default completionSpec;