HelpExtensions.FunctionName(Command, String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a unique shell function name for a command - these names should be
- distinct from the 'root' command's name (i.e. we should not generate the function name 'dotnet' for the binary 'dotnet')
- distinct based on 'path' to get to this function (hence the parentCommandNames)
public static string FunctionName(this System.CommandLine.Command command, string[]? parentCommandNames = default);
static member FunctionName : System.CommandLine.Command * string[] -> string
<Extension()>
Public Function FunctionName (command As Command, Optional parentCommandNames As String() = Nothing) As String
Parameters
- command
- Command
- parentCommandNames
- String[]
The chain of commands to get to this command