Closed muiriswoulfe closed 4 months ago
So the complex output is just extra empty lines around the actual version info?
So the complex output is just extra empty lines around the actual version info?
Empty lines and lines beginning with '>'. See the example in my PR description.
Ah sorry I misunderstood that as being what you ran to generate the output. I think we might need to use the --silent
flag on the npm exec command. Would you be able to try something like that on your system and see if it works to suppress that noisy output
Ah sorry I misunderstood that as being what you ran to generate the output. I think we might need to use the
--silent
flag on the npm exec command. Would you be able to try something like that on your system and see if it works to suppress that noisy output
I tried npm exec --silent --yes azureauth -- --version
and that works. That's a better solution for sure, so I'm happy to update my PR to that fix.
By the way, I found that all calls to azureauth
can have this issue so the change will need to be made throughout to those calls.
azureauth
on some devices is returning a complex output, in the format below. This change ensures thatado-npm-auth
will work with both this output and the one previously supported.2 tests have been added to validate this.
By the way, the linter automatically applied some styling fixes for the test file, which I left in place. I can revert these if desired.