HelpExtensions.FunctionName(Command, String[]) Method

Definition

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

Returns

Applies to