external help file | Module Name | online version | schema |
---|---|---|---|
PSFunctionTools-help.xml |
PSFunctionTools |
2.0.0 |
Format a function name to proper case.
Format-FunctionName [[-Name] <String>] [<CommonParameters>]
Format-FunctionName is intended to be used as a helper function in your scripting automation. This is a simple function that will format a verb-noun function name into proper case. It will take an input such as test-data and format it as Test-Data. It will not format as PascalCase. The command also will not verify that the verb component is acceptable. Use Test-FunctionName for that process.
PS C:\> Format-FunctionName test-data
Test-Data
Format the lower-case command name to proper case.
PS C:\> Format-FunctionName try-pssystem
Try-Pssystem
The command does not validate the verb nor can it produce a PascalCase result like Try-PsSystem.
What is the name of your function? It should follow the Verb-Noun naming convention. Although the verb will not be validated.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: 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.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/