MCPcopy Create free account
hub / github.com/6pac/SlickGrid / logExecDryRunCommand

Function logExecDryRunCommand

scripts/child-process.mjs:78–88  ·  view source on GitHub ↗
(command, args)

Source from the content-addressed store, hash-verified

76 * @returns {String} output
77 */
78export function logExecDryRunCommand(command, args) {
79 const argStr = (Array.isArray(args) ? args.join(' ') : args) ?? '';
80
81 const cmdList = [];
82 for (const cmd of [command, argStr]) {
83 cmdList.push(Array.isArray(cmd) ? cmd.join(' ') : cmd);
84 }
85
86 console.info(styleText(['bold', 'magenta'], '[dry-run] >'), cmdList.join(' '));
87 return '';
88}
89
90/**
91 * @param {String} command - shell command

Callers 3

execAsyncFunction · 0.85
spawnProcessFunction · 0.85
spawnStreamingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected