-
Notifications
You must be signed in to change notification settings - Fork 1
Export PSScriptAliases
Nick Spreitzer edited this page Nov 16, 2019
·
5 revisions
external help file: WhatsNew.dll-Help.xml
Module Name: WhatsNew
schema: 2.0.0
Extracts aliases from a given PowerShell script.
Export-PSScriptAliases -ScriptFile <String> [<CommonParameters>]
Returns a simple list of all aliases contained in a particular PowerShell script. Examine the build.ps1 file in this repository for example usage.
PS C:\> Get-ChildItem -Path "$PSScriptRoot\src\script-modules" -File |
Select-Object -ExpandProperty FullName |
Export-PSScriptAliasesThis example is taken from the WhatsNew build script. It returns all aliases exported from the PowerShell script files contained in this module.
The PowerShell script file from which to extract all function names.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
The PowerShell script file from which to extract all function names.