🌟 [Major]: Introducing the Casing module#2
Merged
Conversation
…CasingStyle functions
…functions; enhance tests for ConvertTo-CasingStyle
… with enhanced casing style tests
…asingStyle, and Split-CasingStyle functions
…nd Split-CasingStyle functions for clarity
|
Module Casing - v1.0.0 published to the PowerShell Gallery. |
|
GitHub release for Casing v1.0.0 has been created. |
|
Module CasingStyle - v1.0.0 published to the PowerShell Gallery. |
|
GitHub release for CasingStyle v1.0.0 has been created. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces a new set of functions for handling various string casing styles, removes an obsolete function, and adds comprehensive tests for the new functionalities. The most important changes include the addition of functions for converting, detecting, and splitting casing styles, the removal of a deprecated test function, and the inclusion of unit tests to ensure the correctness of the new functions.
New Functions for Casing Styles:
src/functions/public/ConvertTo-CasingStyle.ps1: Added a function to convert strings to different casing styles, supporting multiple styles such assnake_case,UPPER_SNAKE_CASE,kebab-case, and more.src/functions/public/Get-CasingStyle.ps1: Added a function to detect the casing style of a given string.src/functions/public/Split-CasingStyle.ps1: Added a function to split strings based on their casing style into an array of words.Removal of Obsolete Function:
src/functions/public/Set-PSModuleTest.ps1: Removed the obsoleteSet-PSModuleTestfunction, which was used for testing purposes.Unit Tests for New Functions:
tests/Casing.Tests.ps1: Added comprehensive unit tests forGet-CasingStyle,ConvertTo-CasingStyle, andSplit-CasingStylefunctions to ensure their correctness and reliability.tests/PSModuleTest.Tests.ps1: Removed the obsolete tests related to theSet-PSModuleTestfunction.Supporting Changes:
src/variables/private/Cases.ps1: Added regex patterns for different casing styles to support the new functions.Type of change
Checklist