-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathyank.ts
40 lines (40 loc) · 1.05 KB
/
yank.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
const completionSpec: Fig.Spec = {
name: "yank",
description: "Yank terminal output to clipboard",
options: [
{
name: "-i",
description: "Ignore case differences between pattern and the input",
},
{ name: "-l", description: "Use the default delimiters except for space" },
{ name: "-x", description: "Use alternate screen" },
{ name: "-v", description: "Print the version" },
{
name: "-d",
description:
"All input characters not present in delim will be recognized as fields",
args: {
name: "delim",
description: "Custom delimiters",
},
},
{
name: "-g",
description: "Use pattern to recognize fields",
args: {
name: "pattern",
description: "Pattern to recognize fields",
},
},
{
name: "--",
description: "Use a command as the yank command",
args: {
name: "command",
description: "Command to use as the yank command",
isVariadic: true,
},
},
],
};
export default completionSpec;