Same issue as #4444
For the command spo theme list we are checking in the command whether themes were found. If a theme was found, we output the API response as it should. But if there were no themes found, nothing is returned at all. This makes the command very unpredictable to use in scripts. A better approach would be to output an empty array (like we do for other commands) when no items were found.
Same issue as #4444
For the command
spo theme listwe are checking in the command whether themes were found. If a theme was found, we output the API response as it should. But if there were no themes found, nothing is returned at all. This makes the command very unpredictable to use in scripts. A better approach would be to output an empty array (like we do for other commands) when no items were found.