Skip to content

Commit

Permalink
refactor: Rename New-PowerShellModuleRepository cmdlet to New-PowerSh…
Browse files Browse the repository at this point in the history
…ellScriptModuleRepository

feat: Add New-PSRepository alias
  • Loading branch information
deadlydog committed Mar 2, 2024
1 parent cf2c3bb commit 0939a90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _InitializeRepository.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you have made changes to any files you may want to commit them before continu

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

Write-Information "Removing the template module files since we are done using it to create the template repository files."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Checkout the template repository at https://github.com/deadlydog/Template.PowerS
# 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.
FunctionsToExport = @(
'Get-TemplateDescription'
'New-PowerShellModuleRepository'
'New-PowerShellScriptModuleRepository'
)

# 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ For more information, visit the repository at https://github.com/deadlydog/Templ
Write-Output $description
}

function New-PowerShellModuleRepository
function New-PowerShellScriptModuleRepository
{
[CmdletBinding()]
[Alias('New-PSRepository')]
Param
(
[Parameter(Mandatory = $true, HelpMessage = "The path to the directory where the module repository should be created.")]
Expand Down

0 comments on commit 0939a90

Please sign in to comment.