• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1const completion: Fig.Spec = {
2  name: "my-app",
3  description: "",
4  subcommands: [
5    {
6      name: "cmd-single-quotes",
7      description: "Can be 'always', 'auto', or 'never'",
8      options: [
9        {
10          name: ["-h", "--help"],
11          description: "Print help",
12        },
13      ],
14    },
15    {
16      name: "cmd-double-quotes",
17      description: "Can be /"always/", /"auto/", or /"never/"",
18      options: [
19        {
20          name: ["-h", "--help"],
21          description: "Print help",
22        },
23      ],
24    },
25    {
26      name: "cmd-backticks",
27      description: "For more information see `echo test`",
28      options: [
29        {
30          name: ["-h", "--help"],
31          description: "Print help",
32        },
33      ],
34    },
35    {
36      name: "cmd-backslash",
37      description: "Avoid '//n'",
38      options: [
39        {
40          name: ["-h", "--help"],
41          description: "Print help",
42        },
43      ],
44    },
45    {
46      name: "cmd-brackets",
47      description: "List packages [filter]",
48      options: [
49        {
50          name: ["-h", "--help"],
51          description: "Print help",
52        },
53      ],
54    },
55    {
56      name: "cmd-expansions",
57      description: "Execute the shell command with $SHELL",
58      options: [
59        {
60          name: ["-h", "--help"],
61          description: "Print help",
62        },
63      ],
64    },
65    {
66      name: "help",
67      description: "Print this message or the help of the given subcommand(s)",
68      subcommands: [
69        {
70          name: "cmd-single-quotes",
71          description: "Can be 'always', 'auto', or 'never'",
72        },
73        {
74          name: "cmd-double-quotes",
75          description: "Can be /"always/", /"auto/", or /"never/"",
76        },
77        {
78          name: "cmd-backticks",
79          description: "For more information see `echo test`",
80        },
81        {
82          name: "cmd-backslash",
83          description: "Avoid '//n'",
84        },
85        {
86          name: "cmd-brackets",
87          description: "List packages [filter]",
88        },
89        {
90          name: "cmd-expansions",
91          description: "Execute the shell command with $SHELL",
92        },
93        {
94          name: "help",
95          description: "Print this message or the help of the given subcommand(s)",
96        },
97      ],
98    },
99  ],
100  options: [
101    {
102      name: "--single-quotes",
103      description: "Can be 'always', 'auto', or 'never'",
104    },
105    {
106      name: "--double-quotes",
107      description: "Can be /"always/", /"auto/", or /"never/"",
108    },
109    {
110      name: "--backticks",
111      description: "For more information see `echo test`",
112    },
113    {
114      name: "--backslash",
115      description: "Avoid '//n'",
116    },
117    {
118      name: "--brackets",
119      description: "List packages [filter]",
120    },
121    {
122      name: "--expansions",
123      description: "Execute the shell command with $SHELL",
124    },
125    {
126      name: ["-h", "--help"],
127      description: "Print help",
128    },
129    {
130      name: ["-V", "--version"],
131      description: "Print version",
132    },
133  ],
134};
135
136export default completion;
137