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

Function parseTask

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

Source from the content-addressed store, hash-verified

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

Callers 3

parseTaskAndArgumentsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

getTaskFromCliArgumentsFunction · 0.85

Tested by

no test coverage detected