Skip to content

Commit

Permalink
add it with jess's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee authored Sep 28, 2023
1 parent 84a9523 commit 2e5f42f
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions dbatools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,18 @@ $forever = @{
foreach ($_ in $forever.GetEnumerator()) {
Set-Alias -Name $_.Key -Value $_.Value
}

# Replication Aliases
$replAliases = @{
'Get-DbaRepServer' = 'Get-DbaReplServer'
'Export-DbaRepServerSetting' = 'Export-DbaReplServerSetting'
'Get-DbaRepDistributor' = 'Get-DbaReplDistributor'
'Test-DbaRepLatency' = 'Test-DbaReplLatency'
'Get-DbaRepPublication' = 'Get-DbaReplPublication'
}
foreach ($_ in $replAliases.GetEnumerator()) {
Set-Alias -Name $_.Key -Value $_.Value
}
#endregion Aliases

# apparently this is no longer required? :O
Expand Down Expand Up @@ -846,7 +858,7 @@ if ($PSVersionTable.PSVersion.Major -lt 5) {
)
$script:noncoresmo = @(
# SMO issues
'Get-DbaRepDistributor',
'Get-DbaReplDistributor',
'Copy-DbaPolicyManagement',
'Copy-DbaDataCollector',
'Get-DbaPbmCategory',
Expand All @@ -855,10 +867,10 @@ if ($PSVersionTable.PSVersion.Major -lt 5) {
'Get-DbaPbmObjectSet',
'Get-DbaPbmPolicy',
'Get-DbaPbmStore',
'Get-DbaRepPublication',
'Test-DbaRepLatency',
'Export-DbaRepServerSetting',
'Get-DbaRepServer',
'Get-DbaReplPublication',
'Test-DbaReplLatency',
'Export-DbaReplServerSetting',
'Get-DbaReplServer',
'Sync-DbaLoginPassword'
)
$script:windowsonly = @(
Expand Down Expand Up @@ -1104,4 +1116,4 @@ Register-DbatoolsConfig'
}
}

[Dataplat.Dbatools.dbaSystem.SystemHost]::ModuleImported = $true
[Dataplat.Dbatools.dbaSystem.SystemHost]::ModuleImported = $true

0 comments on commit 2e5f42f

Please sign in to comment.