command.js
This file
Path
lib/arguments/command.js
18 lines · 643 bytes · JavaScript
Last changed by
Upgrade xo (#980)ehmickybefore adoptionccfa412
History of this fileTake it
Split files into smaller ones (#976)ehmickybefore adoptiond7c6853
lines 1–6why, one step back1import {logCommand} from '../verbose/start.js';2import {getVerboseInfo} from '../verbose/info.js';3import {getStartTime} from '../return/duration.js';4import {joinCommand} from './escape.js';5import {normalizeFdSpecificOption} from './specific.js';6Upgrade xo (#980)ehmickybefore adoptionccfa412
line 7why, one step back7export const handleCommand = (filePath, rawArguments, rawOptions) => {Split files into smaller ones (#976)ehmickybefore adoptiond7c6853
line 8why, one step back8 const startTime = getStartTime();Upgrade xo (#980)ehmickybefore adoptionccfa412
line 9why, one step back9 const {command, escapedCommand} = joinCommand(filePath, rawArguments);Split files into smaller ones (#976)ehmickybefore adoptiond7c6853
lines 10–11why, one step back10 const verboseInfo = getVerboseInfo(normalizeFdSpecificOption(rawOptions, 'verbose'));11 logCommand(escapedCommand, verboseInfo, rawOptions);Upgrade xo (#980)ehmickybefore adoptionccfa412
lines 12–17why, one step back12 return {13 command,14 escapedCommand,15 startTime,16 verboseInfo,17 };Split files into smaller ones (#976)ehmickybefore adoptiond7c6853
line 18why, one step back18};