-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathrm.ts
43 lines (41 loc) · 992 Bytes
/
rm.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
const completionSpec: Fig.Spec = {
name: "rm",
description: "Remove directory entries",
args: {
isVariadic: true,
template: ["folders", "filepaths"],
},
options: [
{
name: ["-r", "-R"],
description:
"Recursive. Attempt to remove the file hierarchy rooted in each file argument",
isDangerous: true,
},
{
name: "-P",
description: "Overwrite regular files before deleting them",
isDangerous: true,
},
{
name: "-d",
description:
"Attempt to remove directories as well as other types of files",
},
{
name: "-f",
description:
"⚠️ Attempt to remove the files without prompting for confirmation",
isDangerous: true,
},
{
name: "-i",
description: "Request confirmation before attempting to remove each file",
},
{
name: "-v",
description: "Be verbose when deleting files",
},
],
};
export default completionSpec;