Skip to content

Commit 452de00

Browse files
authored
v1.5.1 release (#66)
* v1.5.1 ### Changed - `OutputFolderPath` parameter is now optional. If not specified, the report will be saved to the current folder location. * Update Pester tests * Clarify installation step for AsBuiltReport.Core
1 parent b6d0edb commit 452de00

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

AsBuiltReport.Core/AsBuiltReport.Core.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Version number of this module.
1515

16-
ModuleVersion = '1.5.0'
16+
ModuleVersion = '1.5.1'
1717

1818
# Supported PSEditions
1919
CompatiblePSEditions = @('Desktop', 'Core')

AsBuiltReport.Core/Src/Public/New-AsBuiltReport.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ function New-AsBuiltReport {
266266
[String] $Orientation = 'Portrait',
267267

268268
[Parameter(
269-
Mandatory = $true,
269+
Mandatory = $false,
270270
HelpMessage = 'Please provide the path to the document output file'
271271
)]
272272
[ValidateNotNullOrEmpty()]
273273
[Alias('OutputPath')]
274-
[String] $OutputFolderPath,
274+
[String] $OutputFolderPath = (Get-Location).Path,
275275

276276
[Parameter(
277277
Mandatory = $false,

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.5.1] - 2025-11-17
9+
10+
### Changed
11+
- `OutputFolderPath` parameter is now optional. If not specified, the report will be saved to the current folder location. Resolves [#65](https://github.com/AsBuiltReport/AsBuiltReport.Core/issues/65).
12+
813
## [1.5.0] - 2025-10-21
914

1015
### Added

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ If you are unable to use the PowerShell Gallery, you can still install the `AsBu
152152

153153
1. Download the [latest release](https://github.com/AsBuiltReport/AsBuiltReport.Core/releases/latest) zip from GitHub
154154
2. Extract the zip file
155-
3. Copy the folder `AsBuiltReport.Core` to a path that is set in `$env:PSModulePath`.
155+
3. Copy the sub-folder `AsBuiltReport.Core` to a path that is set in `$env:PSModulePath`.
156156
4. For Windows users only, open a PowerShell terminal window and unblock the downloaded files with
157157
```powershell
158158
$path = (Get-Module -Name AsBuiltReport.Core -ListAvailable).ModuleBase; Unblock-File -Path $path\*.psd1; Unblock-File -Path $path\Src\Public\*.ps1
@@ -262,8 +262,8 @@ Get-Help New-AsBuiltReportConfig -Full
262262
Here are some examples to get you going.
263263

264264
```powershell
265-
# Generate a VMware vSphere AsBuiltReport in HTML & Word formats. Perform a health check to highlight particular issues which exist within the VMware vSphere environment. Save the report to the 'H:\Documents\' folder.
266-
New-AsBuiltReport -Report 'VMware.vSphere' -Target '192.168.1.100' -Username 'admin' -Password 'admin' -Format HTML,Word -EnableHealthCheck -OutputFolderPath 'H:\Documents\'
265+
# Generate a VMware vSphere AsBuiltReport in HTML & Word formats. Perform a health check to highlight particular issues which exist within the VMware vSphere environment. Save the report to the current folder.
266+
New-AsBuiltReport -Report 'VMware.vSphere' -Target '192.168.1.100' -Username 'admin' -Password 'admin' -Format HTML,Word -EnableHealthCheck
267267
268268
# Generate a Nutanix Prism Element AsBuiltReport using specified username and password credentials. Specify the report configuration file to be used. Export report to Text, HTML & DOCX formats. Use the default report style. Save the report to the '/Users/Tim/Documents' folder. Display verbose messages to the console.
269269
New-AsBuiltReport -Report 'Nutanix.PrismElement' -Target 'prism.nutanix.local' -Username 'demo' -Password 'demo' -Format Text,Html,Word -OutputFolderPath '/Users/Tim/Documents' -ReportConfigFilePath '/Users/Tim/AsBuiltReport/AsBuiltReport.Nutanix.PrismElement.json' -Verbose
@@ -296,4 +296,4 @@ New-AsBuiltReport -Report Veeam.VBR -Target veeam01.corp.local -Username admin -
296296

297297
- **Images are missing from reports generated using Linux or macOS**
298298

299-
Unfortunately due to [breaking changes](https://learn.microsoft.com/en-gb/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only) in .NET 6, images are no longer supported for reports generated using Linux or macOS.
299+
Unfortunately due to [breaking changes](https://learn.microsoft.com/en-gb/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only) in .NET 6, images are no longer supported for reports generated using Linux or macOS.

Tests/Unit/New-AsBuiltReport.Tests.ps1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ Describe 'New-AsBuiltReport Unit Tests' {
2020
($TargetParam.Attributes | Where-Object { $_ -is [System.Management.Automation.ParameterAttribute] }).Mandatory | Should -Contain $true
2121
}
2222

23-
It 'Should have OutputFolderPath parameter as mandatory' {
24-
$OutputParam = $Command.Parameters['OutputFolderPath']
25-
($OutputParam.Attributes | Where-Object { $_ -is [System.Management.Automation.ParameterAttribute] }).Mandatory | Should -Contain $true
26-
}
27-
2823
It 'Should have Credential parameter in Credential parameter set' {
2924
$CredentialParam = $Command.Parameters['Credential']
3025
$CredentialParam | Should -Not -BeNullOrEmpty
@@ -80,6 +75,10 @@ Describe 'New-AsBuiltReport Unit Tests' {
8075
$TargetParam.ParameterType.Name | Should -Be 'String[]'
8176
}
8277

78+
It 'Should have OutputFolderPath parameter' {
79+
$Command.Parameters.Keys | Should -Contain 'OutputFolderPath'
80+
}
81+
8382
It 'Should have Timestamp parameter' {
8483
$Command.Parameters.Keys | Should -Contain 'Timestamp'
8584
}

0 commit comments

Comments
 (0)