Skip to content

Commit ac1aa72

Browse files
alias & template updates
1 parent 0b8eb71 commit ac1aa72

29 files changed

+393
-90
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.9.107'
7+
ModuleVersion = '2.2.10.120'
88

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

PSModuleDevelopment/changelog.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
# Changelog
22

3-
## ???
3+
## 2.2.10.120 (2021-07-20)
44

55
- New: Build Component - define build workflows based on pre-defined & extensible action code
6+
- Upd: Template AzureFunction - new layout with better build automation
7+
- Upd: Template AzureFunctionRest - new layout to integrate into new AzureFunction template
8+
- Upd: Template PSFProject - added Github Actions integration
9+
- Upd: Aliases - removed "AllScope" option
10+
- Fix: Template PSFTest - fixed PSScriptAnalyzer test path detection
11+
- Fix: Template PSFTest - fixed string LegalSurplus exception being ignored
12+
- Fix: Template PSFModule - fixed PSScriptAnalyzer test path detection
13+
- Fix: Template PSFModule - fixed string LegalSurplus exception being ignored
14+
- Fix: Template PSFProject - fixed PSScriptAnalyzer test path detection
15+
- Fix: Template PSFProject - fixed string LegalSurplus exception being ignored
616
- Fix: TemplateStore - default path iss invalid on MAC (#136)
717
- Fix: Invoke-PSMDTemplate - unreliable string replacement through -replace operator (#113)
818
- Fix: Publish-PSMDScriptFile - insufficient exclude paths (#138; @Callidus2000)

PSModuleDevelopment/functions/help/Get-PSMDHelp.ps1

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,8 @@
113113
PS C:\> Get-PSMDHelp Get-Help "en-us" -Detailed
114114
115115
Gets the detailed help text of Get-Help in English
116-
117-
.NOTES
118-
Version 1.0.0.0
119-
Author: Friedrich Weinmann
120-
Created on: August 15th, 2016
121116
#>
117+
[Alias('hex')]
122118
[CmdletBinding(DefaultParameterSetName = "AllUsersView")]
123119
Param (
124120
[Parameter(ParameterSetName = "Parameters", Mandatory = $true)]
@@ -209,5 +205,4 @@
209205
try { $steppablePipeline.End() }
210206
catch { throw }
211207
}
212-
}
213-
New-Alias -Name hex -Value Get-PSMDHelp -Scope Global -Option AllScope
208+
}

PSModuleDevelopment/functions/moduledebug/Import-PSMDModuleDebug.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
1616
Imports the cPSNetwork module as it was configured to be imported using Set-ModuleDebug.
1717
#>
18+
[Alias('ipmod')]
1819
[CmdletBinding()]
1920
param (
2021
[string]
@@ -40,5 +41,4 @@
4041
[System.Management.Automation.ScriptBlock]::Create($____module.PostImportAction).Invoke()
4142
}
4243
}
43-
}
44-
New-Alias -Name ipmod -Value Import-ModuleDebug -Option AllScope -Scope Global
44+
}

PSModuleDevelopment/functions/moduledebug/Set-PSMDModuleDebug.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
Note: Using Write-Host is generally - but not always - bad practice
6666
Note: Verbose output during module import is generally discouraged (doesn't apply to tests of course)
6767
#>
68+
[Alias('smd')]
6869
[CmdletBinding(DefaultParameterSetName = "Name", SupportsShouldProcess = $true)]
6970
Param (
7071
[Parameter(Mandatory = $true, Position = 0, ParameterSetName = "Name", ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
@@ -176,5 +177,4 @@
176177
}
177178
#endregion Name
178179
}
179-
}
180-
Set-Alias -Name smd -Value Set-PSMDModuleDebug -Option AllScope -Scope Global
180+
}

PSModuleDevelopment/functions/refactor/Read-PSMDScript.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
2525
Parses all script files in the current directory
2626
#>
27+
[Alias('parse')]
2728
[CmdletBinding()]
2829
param (
2930
[Parameter(Position = 0, ParameterSetName = 'Script', Mandatory = $true)]
@@ -78,5 +79,4 @@
7879
}
7980
}
8081
}
81-
}
82-
Set-Alias -Name parse -Value Read-PSMDScript
82+
}

PSModuleDevelopment/functions/templating/Invoke-PSMDTemplate.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
#>
7979
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSPossibleIncorrectUsageOfAssignmentOperator", "")]
8080
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
81+
[Alias('imt')]
8182
[CmdletBinding(SupportsShouldProcess = $true)]
8283
param (
8384
[Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'NameStore')]
@@ -390,6 +391,4 @@
390391
} -EnableException $EnableException -PSCmdlet $PSCmdlet -Continue
391392
}
392393
}
393-
}
394-
395-
if (-not (Test-Path Alias:\imt)) { Set-Alias -Name imt -Value Invoke-PSMDTemplate }
394+
}

PSModuleDevelopment/functions/templating/New-PSMDDotNetProject.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
- It will skip the automatic restore of the project on create
6060
#>
6161
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '')]
62+
[Alias('dotnetnew')]
6263
[CmdletBinding(SupportsShouldProcess = $true, DefaultParameterSetName = 'Create')]
6364
Param (
6465
[Parameter(Position = 0, Mandatory = $true, ParameterSetName = 'Create')]
@@ -175,6 +176,4 @@
175176
& dotnet.exe new $dotNetArgs
176177
}
177178
}
178-
}
179-
180-
New-Alias -Name dotnetnew -Value New-PSMDDotNetProject -Option AllScope -Scope Global -ErrorAction Ignore
179+
}

PSModuleDevelopment/functions/utility/Find-PSMDFileContent.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
3232
Searches all module files for the string 'Get-Test'.
3333
#>
34+
[Alias('find')]
3435
[CmdletBinding()]
3536
Param (
3637
[Parameter(Mandatory = $true, Position = 0)]
@@ -61,5 +62,4 @@
6162

6263
Get-ChildItem -Path $Path -Recurse | Where-Object Extension -Match $Extension | Select-String -Pattern $Pattern
6364
}
64-
}
65-
New-Alias -Name find -Value Find-PSMDFileContent -Scope Global -Option AllScope
65+
}

PSModuleDevelopment/functions/utility/Restart-PSMDShell.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
Author: Friedrich Weinmann
4040
Created on: August 6th, 2016
4141
#>
42+
[Alias('rss', 'Restart-Shell')]
4243
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Low')]
4344
Param (
4445
[Switch]
@@ -72,6 +73,4 @@
7273
if (-not $NoExit) { exit }
7374
}
7475
}
75-
}
76-
New-Alias -Name Restart-Shell -Value Restart-PSMDShell -Option AllScope -Scope Global
77-
New-Alias -Name rss -Value Restart-PSMDShell -Option AllScope -Scope Global
76+
}

0 commit comments

Comments
 (0)