-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathzipcloak.ts
58 lines (58 loc) · 1.53 KB
/
zipcloak.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
const completionSpec: Fig.Spec = {
name: "zipcloak",
description: "Encrypt entries in a zipfile",
args: {
name: "zipfile",
description: "Zipped file to encrypt entries into",
template: ["filepaths"],
suggestCurrentToken: true,
},
options: [
{
name: ["--help", "-h"],
description: "Show a short help for zipcloak",
},
{
name: ["--decrypt", "-d"],
description: "Decrypt encrypted entries (copy if given wrong password)",
args: {
name: "zipfile",
description: "Zipped file to decrypt entries of",
template: ["filepaths"],
},
},
{
name: ["--license", "-L"],
description: "Show software license",
},
{
name: ["--version", "-v"],
description: "Show version information",
},
{
name: ["--quiet", "-q"],
description: "Quiet operation. Suppresses some informational messages",
},
{
name: ["--output-file", "-O"],
description:
"Write output to new archive zipfile, leaving original archive as is",
args: {
name: "zipfile",
description: "New zipfile that will be written to",
template: ["filepaths"],
suggestCurrentToken: true,
},
},
{
name: ["--temp-path", "-b"],
description: "Use the directory given by path for the temporary zip file",
args: {
name: "directory",
description: "Directory for the temporary zip file",
template: ["filepaths"],
},
},
],
};
export default completionSpec;