Skip to content

Commit f49f810

Browse files
author
Kapil Borle
committed
Add ExportedAliases to command data file
1 parent e09c469 commit f49f810

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Utils/New-CommandDataFile.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ $shortModuleInfos = Get-ChildItem -Path $builtinModulePath `
8585
$shortCommands = $commands | select -Property Name,@{Label='CommandType';Expression={$_.CommandType.ToString()}},ParameterSets
8686
$shortModuleInfo = $module | select -Property Name,@{Label='Version';Expression={$_.Version.ToString()}}
8787
Add-Member -InputObject $shortModuleInfo -NotePropertyName 'ExportedCommands' -NotePropertyValue $shortCommands -PassThru
88+
Add-Member -InputObject $shortModuleInfo -NotePropertyName 'ExportedAliases' -NotePropertyValue $module.ExportedAliases.Keys -PassThru
8889
}
8990
}
9091
$jsonData['Modules'] = $shortModuleInfos

0 commit comments

Comments
 (0)