Skip to content

Added Module parameter and an [IO.Path]::Combine() to Build-PSBuildUpdatableHelp#55

Merged
devblackops merged 2 commits intopsake:mainfrom
IMJLA:IMJLA-patch-1
Sep 16, 2022
Merged

Added Module parameter and an [IO.Path]::Combine() to Build-PSBuildUpdatableHelp#55
devblackops merged 2 commits intopsake:mainfrom
IMJLA:IMJLA-patch-1

Conversation

@IMJLA
Copy link
Contributor

@IMJLA IMJLA commented Feb 12, 2022

Description

The Module parameter removes the dependency on the $ModuleName variable in the parent scope while maintaining the existing behavior of inheriting its value.

The LandingPagePath key in $cabParams now uses the [IO.Path]::Combine([string[]]) method rather than manual string concatenation

Related Issue

#54

Motivation and Context

This will make it easier to use Build-PSBuildUpdatableHelp in custom psake files or other contexts

How Has This Been Tested?

All 195 existing Pester tests passed

Also tested in a vacuum as demonstrated by the example in the Issue

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (I think? Should I do anything other than the comment-based help?)
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes. (Sorry, I don't know where to do this, don't see existing per-function tests, I am a testing n00b)
  • All new and existing tests passed.

The Module parameter removes the dependency on the $ModuleName variable in the parent scope while maintaining the existing behavior of inheriting its value.

The LandingPagePath key in $cabParams now uses the [IO.Path]::Combine([string[]]) method rather than manual string concatenation
@devblackops
Copy link
Member

Thanks @IMJLA!

@devblackops devblackops merged commit 42d74ee into psake:main Sep 16, 2022
HeyItsGilbert added a commit that referenced this pull request Oct 6, 2024
### Changed

- Bump Pester to latest 5.6.1

### Fixed

- [**#52**](#52) Pester
object wasn't being passed back after running tests, causing the Pester
task to never fail (via [@webtroter](https://github.com/webtroter))
- [**#55**](#55) Add
`-Module` parameter to `Build-PSBuildUpdatableHelp` (via
[@IMJLA](https://github.com/IMJLA))
- [**#60**](#60) Fix
Windows PowerShell compatibility in `Initialize-PSBuild` (via
[@joshooaj](https://github.com/joshooaj))
- [**#62**](#62) Fix code
coverage output fle format not working (via
[@OpsM0nkey](https://github.com/OpsM0nkey))
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.

2 participants