Priority
(Low) Something is a little off
Description
Noticed that the command spo cdn get has no command output (stdout). All output is going to stderr.
|
if (response.ErrorInfo) { |
|
throw response.ErrorInfo.ErrorMessage; |
|
} |
|
else { |
|
const result: boolean = json[json.length - 1]; |
|
if (this.verbose) { |
|
await logger.logToStderr(`${(cdnType === 0 ? 'Public' : 'Private')} CDN at ${spoAdminUrl} is ${(result === true ? 'enabled' : 'disabled')}`); |
|
} |
|
else { |
|
await logger.logToStderr(result); |
|
} |
|
} |
Also noticed that the result returned is different when using --verbose or --debug.
Steps to reproduce
Use spo cdn get
Expected results
Command to output result to stdout
Actual results
Everything is logged to stderr
Diagnostics
No response
CLI for Microsoft 365 version
v7.10.0
nodejs version
v20.10.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response
Priority
(Low) Something is a little off
Description
Noticed that the command spo cdn get has no command output (stdout). All output is going to stderr.
cli-microsoft365/src/m365/spo/commands/cdn/cdn-get.ts
Lines 92 to 103 in 10b9b79
Also noticed that the result returned is different when using
--verboseor--debug.Steps to reproduce
Use
spo cdn getExpected results
Command to output result to stdout
Actual results
Everything is logged to stderr
Diagnostics
No response
CLI for Microsoft 365 version
v7.10.0
nodejs version
v20.10.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response