forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhead.ts
35 lines (34 loc) · 902 Bytes
/
head.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
const completionSpec: Fig.Spec = {
name: "head",
description: "Output the first part of files",
args: {
name: "file",
template: "filepaths",
},
options: [
{
name: ["-c", "--bytes"],
description: "Print the first [numBytes] bytes of each file",
args: { name: "numBytes" },
},
{
name: ["-n", "--lines"],
description: "Print the first [numLines] lines instead of the first 10",
args: { name: "numLines" },
},
{
name: ["-q", "--quiet", "--silent"],
description: "Never print headers giving file names",
},
{
name: ["-v", "--verbose"],
description: "Always print headers giving file names",
},
{ name: "--help", description: "Display this help and exit" },
{
name: "--version",
description: "Output version information and exit",
},
],
};
export default completionSpec;