(command, args)
| 76 | * @returns {String} output |
| 77 | */ |
| 78 | export 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 |
no outgoing calls
no test coverage detected