Log source push errors to console.
Hey,
I am using push source command and want to display errors the same way sfdx-cli does and at the same time process the error in js. If I don't set the _quiet to false then the progress bar is displayed also but like this:
SOURCE PROGRESS | ████████████████████████████████████████ | 0/0 Files
SOURCE PROGRESS | ████████████████████████████████████████ | 0/0 Files
SOURCE PROGRESS | ████████████████████████████████████████ | 0/0 Files
SOURCE PROGRESS | ████████████████████████████████████████ | 0/0 Files
SOURCE PROGRESS | ████████████████████████████████████████ | 0/0 Files
SOURCE PROGRESS | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0/2717 Files
SOURCE PROGRESS | █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 99/2717 Files
SOURCE PROGRESS | █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 99/2717 Files
SOURCE PROGRESS | █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 99/2717 Files
I would like to show the error, but don't want to mess up the console with the progress bars in multiple lines. I don't mind the progress bar itself, but the fact that it is in multiple lines (cca 100 in my case). Possible solutions to my problem:
- Keep it quiet and then have some option to display the error object, probably via salesforce-alm?
- Set quiet to false and fix the progress bar so it displays in one row the same way sfdx-cli.
Thank you guys for great work!
Edited by Ondrej Kratochvil