-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathbcd.ts
46 lines (45 loc) · 979 Bytes
/
bcd.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
const completion: Fig.Spec = {
name: "bcd",
description: "Bookmark directories and move to them",
options: [
{
name: ["-s", "--store"],
description: "Store the current directory as a bookmark",
isRepeatable: true,
args: {
name: "store",
isOptional: true,
},
},
{
name: ["-r", "--remove"],
description: "Remove a specified bookmark",
isRepeatable: true,
args: {
name: "remove",
isOptional: true,
},
},
{
name: ["-i", "--install"],
description: "Setup the shell init script",
},
{
name: ["-l", "--list"],
description: "List the stored bookmarks",
},
{
name: ["-V", "--version"],
description: "Print version information",
},
{
name: ["-h", "--help"],
description: "Print help information",
},
],
args: {
name: "bookmark",
isOptional: true,
},
};
export default completion;