Skip to content

Commit 0939a90

Browse files
committed
refactor: Rename New-PowerShellModuleRepository cmdlet to New-PowerShellScriptModuleRepository
feat: Add New-PSRepository alias
1 parent cf2c3bb commit 0939a90

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

_InitializeRepository.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you have made changes to any files you may want to commit them before continu
1616

1717
Write-Information "Creating the template repository files."
1818
Import-Module -Name $TemplateModuleDirectoryPath -Force
19-
New-PowerShellModuleRepository -RepositoryDirectoryPath $RepositoryDirectoryPath -ModuleName $moduleName -OrganizationName $organizationName
19+
New-PowerShellScriptModuleRepository -RepositoryDirectoryPath $RepositoryDirectoryPath -ModuleName $moduleName -OrganizationName $organizationName
2020
Remove-Module -Name Template.PowerShell.ScriptModule -Force
2121

2222
Write-Information "Removing the template module files since we are done using it to create the template repository files."

src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Checkout the template repository at https://github.com/deadlydog/Template.PowerS
6969
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
7070
FunctionsToExport = @(
7171
'Get-TemplateDescription'
72-
'New-PowerShellModuleRepository'
72+
'New-PowerShellScriptModuleRepository'
7373
)
7474

7575
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.

src/Template.PowerShell.ScriptModule/Template.PowerShell.ScriptModule.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ For more information, visit the repository at https://github.com/deadlydog/Templ
1414
Write-Output $description
1515
}
1616

17-
function New-PowerShellModuleRepository
17+
function New-PowerShellScriptModuleRepository
1818
{
1919
[CmdletBinding()]
20+
[Alias('New-PSRepository')]
2021
Param
2122
(
2223
[Parameter(Mandatory = $true, HelpMessage = "The path to the directory where the module repository should be created.")]

0 commit comments

Comments
 (0)