MCPcopy Create free account
hub / github.com/sindresorhus/execa / handleCommand

Function handleCommand

lib/arguments/command.js:8–20  ·  view source on GitHub ↗
(filePath, rawArguments, rawOptions)

Source from the content-addressed store, hash-verified

6
7// Compute `result.command`, `result.escapedCommand` and `verbose`-related information
8export const handleCommand = (filePath, rawArguments, rawOptions) => {
9 const startTime = getStartTime();
10 const {command, escapedCommand} = joinCommand(filePath, rawArguments);
11 const verbose = normalizeFdSpecificOption(rawOptions, 'verbose');
12 const verboseInfo = getVerboseInfo(verbose, escapedCommand, {...rawOptions});
13 logCommand(escapedCommand, verboseInfo);
14 return {
15 command,
16 escapedCommand,
17 startTime,
18 verboseInfo,
19 };
20};

Callers 2

handleSyncArgumentsFunction · 0.90
handleAsyncArgumentsFunction · 0.90

Calls 5

getStartTimeFunction · 0.90
joinCommandFunction · 0.90
getVerboseInfoFunction · 0.90
logCommandFunction · 0.90

Tested by

no test coverage detected