-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathtruncate.ts
44 lines (44 loc) · 1.13 KB
/
truncate.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
const completionSpec: Fig.Spec = {
name: "truncate",
description: "Shrink or extend the size of a file to the specified size",
options: [
{
name: ["--no-create", "-c"],
description: "Do not create any files",
},
{
name: ["--io-blocks", "-o"],
description: "Treat SIZE as number of IO blocks instead of bytes",
},
{
name: ["--reference", "-r"],
description: "Base size on RFILE",
args: {
name: "RFILE",
},
},
{
name: ["--size", "-s"],
description: "Set or adjust the file size by SIZE bytes",
args: {
name: "SIZE",
description:
"The SIZE argument is an integer and optional unit; units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on",
},
},
{
name: "--help",
description: "Show help for truncate",
},
{
name: "--version",
description: "Output version information and exit",
},
],
args: {
name: "FILE",
isVariadic: true,
template: "filepaths",
},
};
export default completionSpec;