MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / cliMain

Function cliMain

scripts/benchmark/main.ts:140–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140async function cliMain(): Promise<void> {
141 const benchArgs = resolveAndValidateArgs(process.argv.slice(2));
142
143 if (benchArgs === undefined) {
144 console.log(USAGE);
145 return;
146 }
147
148 try {
149 await runBenchmark(benchArgs);
150 } catch (error) {
151 if (!(error instanceof Error)) {
152 throw error;
153 }
154
155 logError(error.message);
156 process.exit(1);
157 }
158}
159
160function buildHyperfineCommand(
161 command: string,

Callers 1

main.tsFile · 0.85

Calls 3

resolveAndValidateArgsFunction · 0.90
logErrorFunction · 0.90
runBenchmarkFunction · 0.85

Tested by

no test coverage detected