Skip to content

Canonicalize -Preset,-Configuration; wildcard support#63

Merged
MarkSchofield merged 1 commit intodevelopfrom
mschofie/parameter-names
Sep 22, 2025
Merged

Canonicalize -Preset,-Configuration; wildcard support#63
MarkSchofield merged 1 commit intodevelopfrom
mschofie/parameter-names

Conversation

@MarkSchofield
Copy link
Owner

Fixes #55.

Configure-CMakeBuild and Build-CMakeBuild have inconsistent parameters with Invoke-CMakeOutput - they use the plural -Presets, -Configurations and -Targets. This makes it awkward to use the same parameters between Build-CMakeBuild and Invoke-CMakeOutput and - more importantly - it's against the 'Strongly Encouraged Development Guidelines' for PowerShell, which states that only parameters that are required to accept multiple values should have a plural name. This PR fixes the parameter names - keeping an 'Alias' for backward compatibility. Whilst re-working things, I also added 'wildcard' support for 'Configuration' and 'Preset' values.

Whilst this change adds some tests, there's more to add. And more documentation is forthcoming.

@MarkSchofield MarkSchofield force-pushed the mschofie/parameter-names branch from 77d3983 to 01d6efe Compare September 22, 2025 06:25
@MarkSchofield MarkSchofield merged commit b4aa25a into develop Sep 22, 2025
1 check passed
@MarkSchofield MarkSchofield deleted the mschofie/parameter-names branch September 22, 2025 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standardize parameters between 'Build-CMakeBuild' and 'Invoke-CMakeOutput'

1 participant