SeeminglyScience / EditorServicesCommandSuite

Collection of editor commands for use in PowerShell Editor Services.
Other
151 stars 13 forks source link

ConvertTo-SplatExpression - new parameter to choose variable name casing #59

Closed phoerr closed 3 years ago

phoerr commented 4 years ago

Please see #58

This pull request adds a new parameter, VariableCase, to ConvertTo-SplatExpression which allows the user to choose how the function capitalizes the first letter of the variable name it creates.

This parameter accepts one of three values from a ValidateSet:

  1. camelCase - Sets the first letter of the variable to lowercase (This is the default to match current behavior).
  2. PascalCase - Sets the first letter of the variable to uppercase.
  3. Unmodified - Does not change the casing and uses the same casing as the command being used to create the splat.
PrzemyslawKlys commented 3 years ago

@SeeminglyScience would you consider this PR?

SeeminglyScience commented 3 years ago

Oops meant to close this.

@PrzemyslawKlys this is already implemented. See #58 for details