-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathtouch.ts
59 lines (58 loc) · 1.51 KB
/
touch.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
const completionSpec: Fig.Spec = {
name: "touch",
description: "Change file access and modification times",
args: {
name: "file",
isVariadic: true,
template: "folders",
suggestCurrentToken: true,
},
options: [
{
name: "-A",
description:
"Adjust the access and modification time stamps for the file by the specified value",
args: {
name: "time",
description: "[-][[hh]mm]SS",
},
},
{ name: "-a", description: "Change the access time of the file" },
{
name: "-c",
description: "Do not create the file if it does not exist",
},
{
name: "-f",
description:
"Attempt to force the update, even if the file permissions do not currently permit it",
},
{
name: "-h",
description:
"If the file is a symbolic link, change the times of the link itself rather than the file that the link points to",
},
{
name: "-m",
description: "Change the modification time of the file",
},
{
name: "-r",
description:
"Use the access and modifications times from the specified file instead of the current time of day",
args: {
name: "file",
},
},
{
name: "-t",
description:
"Change the access and modification times to the specified time instead of the current time of day",
args: {
name: "timestamp",
description: "[[CC]YY]MMDDhhmm[.SS]",
},
},
],
};
export default completionSpec;