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

Function parseTask

packages/hardhat/src/internal/cli/parser.ts:136–148  ·  view source on GitHub ↗
(
  cliArguments: string[],
  usedCliArguments: boolean[],
  tasksMap: Map<string, Task>,
)

Source from the content-addressed store, hash-verified

134 * If no task id is provided, an empty array is returned.
135 */
136export function parseTask(
137 cliArguments: string[],
138 usedCliArguments: boolean[],
139 tasksMap: Map<string, Task>,
140): Task | string[] {
141 const taskOrId = getTaskFromCliArguments(
142 cliArguments,
143 usedCliArguments,
144 tasksMap,
145 );
146
147 return taskOrId;
148}
149
150function getTaskFromCliArguments(
151 cliArguments: string[],

Callers 3

parseTaskAndArgumentsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

getTaskFromCliArgumentsFunction · 0.85

Tested by

no test coverage detected