Debian Codegraph @

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

raw symbols SCIP
1 const completionSpec: Fig.Spec = {
2 name: "@withfig/autocomplete-tools",
3 description: "Dev tools for fig's autocomplete",
4 icon: "https://fig.io/icons/fig-light.png",
5 subcommands: [
6 {
7 name: "init",
8 description: "Install one or more packages",
9 },
10 {
11 name: "create-spec",
12 description: "Create a new spec in the src/ folder",
13 args: {
14 name: "name",
15 description: "The name of the new spec",
16 },
17 },
18 {
19 name: "compile",
20 description: "Compile specs in the current directory",
21 },
22 {
23 name: "dev",
24 description:
25 "Compile specs in the current directory and watch for changes",
26 },
27 {
28 name: "merge",
29 description: "Deep merge new spec into old spec",
30 args: [
31 {
32 name: "oldspec",
33 description: "The path to the spec in which deep merge the new one",
34 template: "filepaths",
35 },
36 {
37 name: "newspec",
38 description: "The path of the new spec",
39 template: "filepaths",
40 },
41 ],
42 options: [
43 {
44 name: ["-p", "--preset"],
45 description: "Use the preset of a given integration tool",
46 args: {
47 name: "name",
48 suggestions: [
49 "commander",
50 "oclif",
51 "cobra",
52 "clap",
53 "swift-argument-parser",
54 ],
55 },
56 priority: 76,
57 exclusiveOn: [
58 "--ignore-props",
59 "--ignore-command-props",
60 "--ignore-option-props",
61 "--ignore-arg-props",
62 ],
63 },
64 {
65 name: ["-i", "--ignore-props"],
66 description: "A comma separated list of props not to be preserved",
67 args: {
68 name: "props",
69 },
70 exclusiveOn: ["--preset"],
71 },
72 {
73 name: "--ignore-command-props",
74 description: "The command props that should always be overridden",
75 args: {
76 name: "props",
77 },
78 exclusiveOn: ["--preset"],
79 },
80 {
81 name: "--ignore-option-props",
82 description: "The option props that should always be overridden",
83 args: {
84 name: "props",
85 },
86 exclusiveOn: ["--preset"],
87 },
88 {
89 name: "--ignore-arg-props",
90 description: "The arg props that should always be overridden",
91 args: {
92 name: "props",
93 },
94 exclusiveOn: ["--preset"],
95 },
96 {
97 name: ["-n", "--new-file"],
98 description: "Create a new spec file instead of updating the old one",
99 args: {
100 name: "path",
101 template: "filepaths",
102 },
103 },
104 ],
105 },
106 ],
107 };
108
109 export default completionSpec;