forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cut.ts
62 lines (62 loc) · 1.47 KB
/
cut.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
60
61
62
export const completionSpec: Fig.Spec = {
name: "cut",
description: "cut out selected portions of each line of a file",
args: {
template: "filepaths",
isOptional: true,
variadic: true,
},
options: [
{
name: "-b",
description: "byte positions as a comma or - separated list of numbers",
args: [
{
name: "list",
description: "specifies byte positions",
},
],
},
{
name: "-c",
description: "column positions as a comma or - separated list of numbers",
args: [
{
name: "list",
description: "specifies column positions",
},
],
},
{
name: "-f",
description: "field positions as a comma or - separated list of numbers",
args: [
{
name: "list",
description: "specifies column positions",
},
],
},
{
name: "-n",
description: "do not split multi-byte characters",
},
{
name: "-d",
description:
"use delim as the field delimiter character instead of the tab character.",
args: [
{
name: "delim",
description: "field deliminator to use instead of the tab character",
isOptional: true,
},
],
},
{
name: "-s",
description:
"suppress lines with no field delimiter characters. unless specified, lines with no delimiters are passed through unmodified.",
},
],
};