diff --git a/OrchardCore/Initialize-OrchardCore/Initialize-OrchardCore.psm1 b/OrchardCore/Initialize-OrchardCore/Initialize-OrchardCore.psm1 deleted file mode 100644 index 05f8ff5..0000000 --- a/OrchardCore/Initialize-OrchardCore/Initialize-OrchardCore.psm1 +++ /dev/null @@ -1,35 +0,0 @@ -<# -.Synopsis - Initializes an Orchard Core solution for a git repository. Deprecated, use Initialize-OrchardCoreSolution instead. -#> - - -function Initialize-OrchardCore -{ - [CmdletBinding()] - [alias('Init-OrchardCore')] - Param - ( - [string] $Path = (Get-Location).Path, - - [Parameter(Mandatory = $true)] - [string] $Name, - - [string] $ModuleName, - [string] $ThemeName, - [string] $NuGetSource - ) - - Process - { - $initializationParameters = @{ - Name = $Name - Path = $Path - ModuleName = $ModuleName - ThemeName = $ThemeName - NuGetSource = $NuGetSource - } - - Initialize-OrchardCoreSolution @initializationParameters - } -} \ No newline at end of file diff --git a/OrchardCore/Initialize-OrchardCoreSolution/Initialize-OrchardCoreSolution.psd1 b/OrchardCore/Initialize-OrchardCoreSolution/Initialize-OrchardCoreSolution.psd1 new file mode 100644 index 0000000..8b049d0 --- /dev/null +++ b/OrchardCore/Initialize-OrchardCoreSolution/Initialize-OrchardCoreSolution.psd1 @@ -0,0 +1,9 @@ +@{ + RootModule = './Initialize-OrchardCoreSolution.psm1' + ModuleVersion = '0.0.1' + GUID = 'f307f677-bba7-409f-88dd-c17531e21731' + Author = 'Lombiq Technologies Ltd. (https://lombiq.com)' + CompanyName = 'Lombiq Technologies Ltd.' + VariablesToExport = '*' + AliasesToExport = @('Init-OrchardCoreSolution', 'Initialize-OrchardCore') +} diff --git a/OrchardCore/Initialize-OrchardCoreSolution/Initialize-OrchardCoreSolution.psm1 b/OrchardCore/Initialize-OrchardCoreSolution/Initialize-OrchardCoreSolution.psm1 index 43a90f9..e2002cc 100644 --- a/OrchardCore/Initialize-OrchardCoreSolution/Initialize-OrchardCoreSolution.psm1 +++ b/OrchardCore/Initialize-OrchardCoreSolution/Initialize-OrchardCoreSolution.psm1 @@ -13,7 +13,7 @@ function Initialize-OrchardCoreSolution { [CmdletBinding()] - [alias('Init-OrchardCoreSolution')] + [alias('Init-OrchardCoreSolution', 'Initialize-OrchardCore')] Param ( [string] $Path = (Get-Location).Path, @@ -28,6 +28,11 @@ function Initialize-OrchardCoreSolution Process { + if ($MyInvocation.InvocationName -ne 'Initialize-OrchardCoreSolution') + { + Write-Warning 'You''re using the deprecated name of this module. Use "Initialize-OrchardCoreSolution" instead.' + } + if ([string]::IsNullOrEmpty($NuGetSource)) { dotnet new install OrchardCore.ProjectTemplates::1.7.0