Lenguaje

HelpExtensions.FunctionName(Command, String[]) Método

Definición

Creación de un nombre de función de shell único para un comando: estos nombres deben ser

  • distinto del nombre del comando "root" (es decir, no se debe generar el nombre de la función "dotnet" para el binario "dotnet")
  • distinct basado en 'path' para llegar a esta función (por lo tanto, 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

Parámetros

command
Command
parentCommandNames
String[]

Cadena de comandos para llegar a este comando

Devoluciones

Se aplica a