-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathwasm-pack.ts
76 lines (75 loc) · 1.76 KB
/
wasm-pack.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
71
72
73
74
75
76
const completionSpec: Fig.Spec = {
name: "wasm-pack",
description: "",
subcommands: [
{
name: "build",
icon: "🏗️",
description: "Build an npm package",
},
{
name: "help",
description: "Prints this message or the help of the given subcommand(s)",
args: {
name: "subcommand",
isOptional: true,
template: "help",
},
},
{
name: ["login", "adduser", "add-user"],
icon: "👤",
description: "Add an npm registry user account",
},
{
name: "new",
icon: "🐑",
description: "Create a new project with a template",
},
{
name: "pack",
icon: "📦",
description: "Create a tarball of the npm package (does not publish)",
},
{
name: "publish",
icon: "🎆",
description: "Pack and publish a package to npm",
},
{
name: "test",
description: "Run tests for WebAssembly module",
},
],
options: [
{
name: ["--help", "-h"],
description: "Show help for wasm-pack or for the given subcommand(s)",
},
{
name: ["--quiet", "-q"],
description: "Suppress output from stdout",
},
{
name: ["--version", "-V"],
description: "Show version for wasm-pack",
},
{
name: ["--verbose", "-v"],
description: "Log verbosity is based off the number of v used",
},
{
name: ["--log-level", "-l"],
description:
"The maximum level of messages that should be logged by wasm-pack",
args: {
name: "log-level",
default: "info",
suggestions: ["info", "warn", "error"],
},
},
],
// Only uncomment if wasm-pack takes an argument
// args: {}
};
export default completionSpec;