Removes trailing slashes from 'spo get'
While using the CLI, I used spo set command. I just copied the tenant URL from my browser and noticed it has a trailing slash. While the API requests are still working, it doesn't look nice in the debug logs.
I also enforced that the URL parameter is a string.
We have this in a lot of other places as well:
Maybe something for another day.
Good catch. We should definitely trim that
@martinlingstuyl, I made a small update to this PR. In #5955 we introduced a new util function removeTrailingSlashes since this might come in handy at other places as well. So updated this PR to use that util function instead. I hope you don't mind.
Merged manually, thank you! 🎉