-
Notifications
You must be signed in to change notification settings - Fork 116
/
debugHarness.ps1
54 lines (46 loc) · 1.52 KB
/
debugHarness.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Use this file to debug the module.
Import-Module $PSScriptRoot\src\Plaster.psd1
# Various debug scenarios other than running Invoke-Plaster.
# Invoke-Pester $PSScriptRoot\test
# Test-PlasterManifest "$PSScriptRoot\src\Templates\NewModule\plasterManifest.xml" -Verbose
# Invoke-psake $PSScriptRoot\build.psake.ps1 -taskList BuildHelp
# return
$OutDir = "$PSScriptRoot\examples\Out"
Remove-Item $OutDir -Recurse -ErrorAction SilentlyContinue
# $PlasterParams = @{
# TemplatePath = "$PSScriptRoot\src\Templates\AddPSScriptAnalyzerSettings"
# DestinationPath = $OutDir
# FileName = 'PSScriptAnalyzerSettings.psd1'
# Editor = 'VSCode'
# PassThru = $true
# }
$PlasterParams = @{
TemplatePath = "$PSScriptRoot\src\Templates\NewPowerShellScriptModule"
DestinationPath = $OutDir
ModuleName = 'FooUtils'
Version = '1.2.0'
Editor = 'VSCode'
PassThru = $true
}
# $PlasterParams = @{
# TemplatePath = "$PSScriptRoot\examples\NewDscResourceScript"
# DestinationPath = $OutDir
# TargetResourceName = 'ZipFile'
# Ensure = 'Yes'
# PassThru = $true
# }
# $PlasterParams = @{
# TemplatePath = "$PSScriptRoot\examples\NewModule"
# DestinationPath = $OutDir
# ModuleName = 'FooUtils'
# ModuleDesc = 'Utilities for Foo.'
# FullName = 'John Q. Doe'
# Version = '1.2.0'
# Options = 'Git','psake','Pester','PSScriptAnalyzer','platyPS'
# Editor = 'VSCode'
# License = 'MIT'
# PassThru = $true
# }
$obj = Invoke-Plaster @PlasterParams -Force
"PassThru object is:"
$obj