Creating a PowerShell Weather Command Part 7
After a brief break, let’s return to the weather tool and Pester tests. When we ended last time, we had a function to get a location that could be piped to the weather command.
Reviewing this, I recognize changes I should make to make the commands easy to use and the output meaningful. I knew the location property value was going to be a placeholder. In this example, I think the value of ‘Las Vegas, Nevada’ would be more meaningful.
I’m also considering how a user might want to use the weather command. Get-OMCurrentWeather
requires the latitude and longitude to complete the API URI.
Want to read the full issue?