Skip to content

Commit 74d592b

Browse files
author
Robin Stolpe
committed
Build module
1 parent b4f52cf commit 74d592b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

MaintainModule/MaintainModule.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919
# Generated by: Robin Stolpe
2020
#
21-
# Generated on: 2022-11-26
21+
# Generated on: 2022-11-27
2222
#
2323

2424
@{

MaintainModule/MaintainModule.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Function Uninstall-RSModule {
4545
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
4646
#>
4747

48-
[CmdletBinding()]
48+
[CmdletBinding(SupportsShouldProcess)]
4949
Param(
5050
[Parameter(Mandatory = $false, HelpMessage = "Enter the module or modules (separated with ,) you want to uninstall")]
5151
[string]$Module
@@ -152,7 +152,7 @@ Function Update-RSModule {
152152
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
153153
#>
154154

155-
[CmdletBinding()]
155+
[CmdletBinding(SupportsShouldProcess)]
156156
Param(
157157
[Parameter(Mandatory = $false, HelpMessage = "Enter module or modules (separated with ,) that you want to update, if you don't enter any all of the modules will be updated")]
158158
[string]$Module,

RSPublish.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ $ModuleName = $(Get-Location) -split "/" | Select-Object -last 1
2727
# Paths for different sections inside the module
2828
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
2929
$ModuleFolderPath = "$($scriptPath)/$($ModuleName)"
30-
$srcPath = "$($scriptPath)/src"
31-
$srcPublicFunctionPath = "$($scriptPath)/src/public/function"
30+
$srcPath = "$($scriptPath)/.src"
31+
$srcPublicFunctionPath = "$($scriptPath)/.src/public/function"
3232
$outPSMFile = "$($ModuleFolderPath)/$($ModuleName).psm1"
3333
$outPSDFile = "$($ModuleFolderPath)/$($ModuleName).psd1"
3434
$psdTemplate = "$($srcPath)/$($ModuleName).psd1.source"

0 commit comments

Comments
 (0)