-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathasar.ts
70 lines (69 loc) · 1.54 KB
/
asar.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
60
61
62
63
64
65
66
67
68
69
70
const completionSpec: Fig.Spec = {
name: "asar",
description: "A simple extensive tar-like archive format with indexing",
subcommands: [
{
name: ["pack", "p"],
description: "Create asar archive",
args: [
{
name: "directory",
description: "The directory you want to archive",
},
{
name: "output",
description: "The name of the output file",
},
],
},
{
name: ["list", "l"],
description: "List files of asar archive",
args: {
name: "archive",
description: "The archive file",
},
},
{
name: ["extract-file", "ef"],
description: "Extract one file from archive",
args: [
{
name: "archive",
description: "The archive file",
},
{
name: "filename",
description: "The name of the file you want to extract",
},
],
},
{
name: ["extract", "e"],
description: "Extract archive",
args: [
{
name: "archive",
description: "The archive file",
},
{
name: "directory",
description: "The directory you want to extract to",
},
],
},
],
options: [
{
name: ["--help", "-h"],
description: "Show help for asar",
},
{
name: ["--V", "--version"],
description: "Output the version number",
},
],
// Only uncomment if asar takes an argument
// args: {}
};
export default completionSpec;