vscode-viva icon indicating copy to clipboard operation
vscode-viva copied to clipboard

💡 [Feature]: extend CLI command logs with full name and options passed

Open Adam-it opened this issue 1 year ago • 0 comments

🎯 Aim of the feature

Currently the logs for CLI commands are quite short image

we are missing the m365 before every command and we do not print out the passed options that were used to run this command. This does not help as the actually idea behind this functionality was to provide guidance for developers what are the CLI commands that may use as equivalent to the SPFx Toolkit feature if they would rather use a terminal instead.

We should fix it up. In order to do that we should recheck the tryExecuteCommand method in https://github.com/pnp/vscode-viva/blob/main/src/services/CliCommandExecuter.ts

image

We should add:

  • m365 for every command
  • print the passed args which will be the options used
  • double check the output default value which is text. IMO it should be always json and we could then remove passing it in all places

Adam-it avatar Jul 28 '24 20:07 Adam-it