-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathwhence.ts
57 lines (56 loc) · 1.31 KB
/
whence.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
const completionSpec: Fig.Spec = {
name: "whence",
description: "For each name, indicate how it should be interpreted",
args: {
name: "names",
isVariadic: true,
},
options: [
{
name: "-v",
description: "Produce verbose output",
},
{
name: "-c",
description: "Print results in a csh-like format",
},
{
name: "-w",
description:
"For each name, print 'name: word', where 'word' is the kind of command",
},
{
name: "-f",
description: "Display contents of shell functions",
},
{
name: "-p",
description:
"Do a path search for the name, even if it's an alias/function/builtin",
},
{
name: "-a",
description: "Don't stop at the first match on the path",
},
{
name: "-m",
description:
"The arguments are taken as patterns (pattern characters must be quoted)",
},
{
name: "-s",
description:
"If the pathname contains symlinks, print the symlink-free name as well",
},
{
name: "-S",
description: "Print intermediate symlinks and the resolved name",
},
{
name: "-x",
description: "Expand tabs when outputting shell function",
args: { name: "num" },
},
],
};
export default completionSpec;