Skip to content

Commit dab8bd2

Browse files
Bugfix creating templates
1 parent e3105b3 commit dab8bd2

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

PSModuleDevelopment/PSModuleDevelopment.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'PSModuleDevelopment.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '2.2.6.65'
7+
ModuleVersion = '2.2.6.67'
88

99
# ID used to uniquely identify this module
1010
GUID = '37dd5fce-e7b5-4d57-ac37-832055ce49d6'

PSModuleDevelopment/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## 2.2.6.67 (May 2nd, 2019)
3+
- Upd: Invoke-PSMDTemplate adding tab completion
4+
- Fix: Invoke-PSMDTemplate fails to create templates
5+
26
## 2.2.6.65 (May 2nd, 2019)
37
- New: Template: AzureFunctionRest - creates an azure function designed for rest API trigger.
48
- Upd: Template: PSFProject added Azure Functions Project CI/CD integration.

PSModuleDevelopment/functions/templating/Invoke-PSMDTemplate.ps1

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

417417
foreach ($child in $Item.Children)
418418
{
419-
Write-TemplateItem -Item $child -Path $folder.FullName -ParameterFlat $ParameterFlat -ParameterScript $ParameterScript -Raw $Raw
419+
Write-TemplateItem -Item $child -Path $folder.FullName -Encoding $Encoding -ParameterFlat $ParameterFlat -ParameterScript $ParameterScript -Raw $Raw
420420
}
421421
}
422422
#endregion Folder

PSModuleDevelopment/internal/tabcompletion/assignment.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Register-PSFTeppArgumentCompleter -Name PSMD_templatename -Command Get-PSMDTempl
1414
# Invoke-PSMDTemplate
1515
Register-PSFTeppArgumentCompleter -Name PSMD_templatestore -Command Invoke-PSMDTemplate -Parameter Store
1616
Register-PSFTeppArgumentCompleter -Name PSMD_templatename -Command Invoke-PSMDTemplate -Parameter TemplateName
17+
Register-PSFTeppArgumentCompleter -Name psframework-encoding -Command Invoke-PSMDTemplate -Parameter Encoding
1718

1819
# Remove-PSMDTemplate
1920
Register-PSFTeppArgumentCompleter -Name PSMD_templatestore -Command Remove-PSMDTemplate -Parameter Store

0 commit comments

Comments
 (0)