-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathwhereis.ts
59 lines (59 loc) · 1.4 KB
/
whereis.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
51
52
53
54
55
56
57
58
59
const completionSpec: Fig.Spec = {
name: "whereis",
description: "Locate the binary, source, and manual page files for a command",
options: [
{
name: "-b",
description: "Search only for binaries",
},
{
name: "-m",
description: "Search only for manual sections",
},
{
name: "-s",
description: "Search only for sources",
},
{
name: "-u",
description: "Search for unusual entries",
},
{
name: "-B",
description: "Search for binaries only in the specified directory",
args: {
name: "directory",
description: "The directory to search in",
template: "folders",
},
},
{
name: "-M",
description: "Search for manual pages only in the specified directory",
args: {
name: "directory",
description: "The directory to search in",
template: "folders",
},
},
{
name: "-S",
description: "Search for sources only in the specified directory",
args: {
name: "directory",
description: "The directory to search in",
template: "folders",
},
},
{
name: "-f",
description: "Terminate the -B, -M, and -S options",
},
],
// Only uncomment if whereis takes an argument
args: {
name: "Filename",
description: "The file to search for",
},
};
export default completionSpec;