-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathmkdir.ts
37 lines (36 loc) · 950 Bytes
/
mkdir.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
const completionSpec: Fig.Spec = {
name: "mkdir",
description: "Make directories",
args: {
name: "directory name",
template: "folders",
suggestCurrentToken: true,
},
options: [
{
name: ["-m", "--mode"],
description: "Set file mode (as in chmod), not a=rwx - umask",
args: { name: "MODE" },
},
{
name: ["-p", "--parents"],
description: "No error if existing, make parent directories as needed",
},
{
name: ["-v", "--verbose"],
description: "Print a message for each created directory",
},
{
name: ["-Z", "--context"],
description:
"Set the SELinux security context of each created directory to CTX",
args: { name: "CTX" },
},
{ name: "--help", description: "Display this help and exit" },
{
name: "--version",
description: "Output version information and exit",
},
],
};
export default completionSpec;