diff --git a/src/services/executeWrappers/CliCommandExecuter.ts b/src/services/executeWrappers/CliCommandExecuter.ts index b34b013..de7341a 100644 --- a/src/services/executeWrappers/CliCommandExecuter.ts +++ b/src/services/executeWrappers/CliCommandExecuter.ts @@ -28,8 +28,20 @@ export class CliExecuter { let cmdOutput: string = ''; let cmdOutputIncludingStderr: string = ''; const outputChannel = Logger.channel; + let cliCommandOptions = ''; + if (args) { + cliCommandOptions = `${Object.keys(args).map(key => { + let option = `--${key}`; + const value = args[key]; + if (value) { + option = `${option} ${value}`; + } + + return option; + }).join(' ')}`; + } - Logger.info(`Running CLI command: ${command}`); + Logger.info(`Running CLI command: m365 ${command} --output ${output} ${cliCommandOptions}`); executeCommand(command, { output, ...args }, { stdout: (message: string) => { message = message.toString();