forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.ts
101 lines (100 loc) · 2.94 KB
/
hardhat.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
const completionSpec: Fig.Spec = {
name: "hardhat",
description: "Ethereum development environment",
options: [
{ name: "config", description: "A Hardhat config file" },
{ name: "--emoji", description: "Use emoji in messages" },
{
name: "--max-memory",
description: "The maximum amount of memory that Hardhat can use",
},
{
name: "--help",
description: "Shows the help text or task's help if name is provided",
args: { isOptional: true, name: "task" },
},
{ name: "--network", description: "The network to connect to" },
{ name: "---show-stack-traces", description: "Show stack traces" },
{ name: "--verbose", description: "Enables Hardhat verbose logging" },
{ name: "--version", description: "Shows hardhat's version" },
],
subcommands: [
{ name: "accounts", description: "Prints the list of accounts" },
{ name: "check", description: "Check whatever you need" },
{
name: "clean",
description: "Clears the cache and deletes all artifacts",
options: [{ name: "--global", description: "Clear the global cache" }],
},
{
name: "compile",
description: "Compiles the entire project, building all artifacts",
options: [
{ name: "--force", description: "Force compilation ignoring cache" },
{
name: "--quiet",
description: "Makes the compilation process less verbose",
},
],
},
{
name: "console",
description: "Opens a hardhat console",
options: [
{
name: "--no-compile",
description: "Don't compile before running this task",
},
],
},
{
name: "flatten",
description: "Flattens and prints contracts and their dependencies",
},
{ name: "help", description: "Prints this message" },
{
name: "node",
description: "Starts a JSON-RPC server on top of Hardhat Network",
options: [
{
name: "--fork",
description: "The URL of the JSON-RPC server to fork from",
},
{
name: "--fork-block-number",
description: "The block number to fork from",
},
{
name: "--hostname",
description: "The host to which to bind to for new connections",
},
{
name: "--port",
description:
"The port on which to listen for new connections (default: 8545)",
},
],
},
{
name: "run",
description: "Runs a user-defined script after compiling the project",
options: [
{
name: "--no-compile",
description: "Don't compile before running this task",
},
],
},
{
name: "test",
description: "Runs mocha tests",
options: [
{
name: "--no-compile",
description: "Don't compile before running this task",
},
],
},
],
};
export default completionSpec;