-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathunzip.ts
48 lines (47 loc) · 921 Bytes
/
unzip.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
const completionSpec: Fig.Spec = {
name: "unzip",
description: "Extract compressed files in a ZIP archive",
args: {
name: "file",
template: "filepaths",
},
options: [
{
name: "-l",
description: "List the contents of a zip file without extracting",
args: {
name: "file",
template: "filepaths",
},
},
{
name: "-c",
args: {
name: "file",
template: "filepaths",
},
},
{
name: "-0",
description:
"Extract a zip file created in windows, containing files with non-ascii (chinese) filenames",
args: [
{
name: "gbk",
},
{
name: "file",
template: "filepaths",
},
],
},
{
name: "-d",
args: {
name: "destination",
template: "folders",
},
},
],
};
export default completionSpec;