-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathgibo.ts
50 lines (49 loc) · 1.24 KB
/
gibo.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
const boilerplates: Fig.Generator = {
script: ["gibo", "list"],
splitOn: "\n",
};
const completionSpec: Fig.Spec = {
name: "gibo",
description: "Easy access to gitignore boilerplates",
subcommands: [
{
name: "dump",
description: "Dump one or more boilerplates to STDOUT",
args: {
name: "boilerplate",
description: "Name of the boilerplate to dump",
generators: boilerplates,
isVariadic: true,
},
},
{
name: "search",
description: "Search for boilerplates",
args: {
name: "search term",
description: "Name of the language or framework to search for",
},
},
{
name: "root",
description: "Show the directory where gibo stores its boilerplates",
},
{ name: "help", description: "Show help information" },
{ name: "list", description: "Show the list of available boilerplates" },
{
name: "update",
description: "Update the list of available boilerplates",
},
{
name: "version",
description: "Show the current version of gibo installed",
},
],
options: [
{
name: ["--help", "-h"],
description: "Show help for gibo",
},
],
};
export default completionSpec;