Skip to content

Commit 13b5004

Browse files
committed
Added type import for the new data types
1 parent 1d33ccb commit 13b5004

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

internal/scripts/postimport.ps1

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
# Load Configurations
44
foreach ($file in (Get-ChildItem "$ModuleRoot\internal\configurations\*.ps1" -ErrorAction Ignore)) {
5-
. Import-ModuleFile -Path $file.FullName
5+
. Import-ModuleFile -Path $file.FullName
66
}
77

88
# Load Tab Expansion
99
foreach ($file in (Get-ChildItem "$ModuleRoot\internal\tepp\*.tepp.ps1" -ErrorAction Ignore)) {
10-
. Import-ModuleFile -Path $file.FullName
10+
. Import-ModuleFile -Path $file.FullName
1111
}
1212

1313
# Load Tab Expansion Assignment
@@ -20,6 +20,13 @@ foreach ($file in (Get-ChildItem "$ModuleRoot\internal\tepp\*.tepp.ps1" -ErrorAc
2020
$server = Get-PSFConfigValue psdatabaseclone.database.server
2121
$database = Get-PSFConfigValue psdatabaseclone.database.name
2222

23-
if(($server -eq $null) -or ($database -eq $null)){
24-
Write-PSFMessage -Message "The module is not yet configured. Please run Set-PdcConfiguration to make the neccesary changes" -Level Warning
23+
if (($server -eq $null) -or ($database -eq $null)) {
24+
Write-PSFMessage -Message "The module is not yet configured. Please run Set-PdcConfiguration to make the neccesary changes" -Level Warning
2525
}
26+
27+
$TypeAliasTable = @{
28+
PSDCClone = "PSDatabaseClone.Parameter.Clone"
29+
PSDCImage = "PSDatabaseClone.Parameter.Image"
30+
}
31+
32+
Set-PSFTypeAlias -Mapping $TypeAliasTable

0 commit comments

Comments
 (0)