-
Notifications
You must be signed in to change notification settings - Fork 1
Export PSScriptFunctionNames
external help file: WhatsNew.dll-Help.xml
Module Name: WhatsNew
schema: 2.0.0
Extracts function names from a given PowerShell script.
Export-PSScriptFunctionNames -ScriptFile <String> [<CommonParameters>]
Returns a simple list of all function names 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-PSScriptFunctionNames
This example is taken from the WhatsNew
build script. It returns all function names 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: False
This 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.