Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🩹 [Patch]: Add verbose logging for emoji download process in Get-GitH…
…ubEmoji function (#236) ## Description This pull request includes significant changes to the `Get-GitHubEmoji` function in `src/functions/public/Emojis/Get-GitHubEmoji.ps1` and updates to the corresponding tests in `tests/GitHub.Tests.ps1`. The changes improve parameter handling, enhance error handling, and update test cases. Improvements to `Get-GitHubEmoji` function: * Added `DefaultParameterSetName` to `CmdletBinding` to ensure the correct parameter set is used by default. * Updated the `Destination` parameter to be mandatory when using the 'Download' parameter set. * Enhanced the response handling by using `Select-Object -ExpandProperty Response` for cleaner code. * Improved the download logic with better error handling and retry mechanisms for failed downloads. Updates to test cases: * Changed the destination for downloading emojis in tests from `$env:TEMP` to `$Home` to ensure compatibility across different environments. [[1]](diffhunk://#diff-0b1d9ba345a583adce874126c13d6edd3f789416bb9c4db5df1e18af3608554cL333-R334) [[2]](diffhunk://#diff-0b1d9ba345a583adce874126c13d6edd3f789416bb9c4db5df1e18af3608554cL454-R454) [[3]](diffhunk://#diff-0b1d9ba345a583adce874126c13d6edd3f789416bb9c4db5df1e18af3608554cL574-R574) [[4]](diffhunk://#diff-0b1d9ba345a583adce874126c13d6edd3f789416bb9c4db5df1e18af3608554cL681-R681) ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ]⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
- Loading branch information