• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1const completion: Fig.Spec = {
2  name: "my-app",
3  description: "testing bash completions",
4  options: [
5    {
6      name: ["-o", "-O", "--option", "--opt"],
7      description: "cmd option",
8      isRepeatable: true,
9      args: {
10        name: "option",
11        isOptional: true,
12      },
13    },
14    {
15      name: ["-f", "-F", "--flag", "--flg"],
16      description: "cmd flag",
17    },
18    {
19      name: ["-h", "--help"],
20      description: "Print help",
21    },
22    {
23      name: ["-V", "--version"],
24      description: "Print version",
25    },
26  ],
27  args: {
28    name: "positional",
29    isOptional: true,
30  },
31};
32
33export default completion;
34